class Railsless::ActiveRecord::SeedLoader

Attributes

path[RW]

Public Class Methods

new(path) click to toggle source
# File lib/railsless/active_record/seed_loader.rb, line 5
def initialize(path)
  @path = path
end

Public Instance Methods

load_seed() click to toggle source
# File lib/railsless/active_record/seed_loader.rb, line 9
def load_seed
  Kernel.load(path) if path && File.exist?(path)
end