Module: RailsFaker::ApplicationFaker

Defined in:
lib/arfy/application_faker.rb

Instance Method Summary collapse

Instance Method Details

#configObject



3
4
5
6
7
8
9
10
11
# File 'lib/arfy/application_faker.rb', line 3

def config
  if @fake_config.nil?
    @fake_config = Object.new
    class << @fake_config
      include ConfigFaker
    end
  end
  @fake_config 
end

#load_seedObject



17
18
19
20
# File 'lib/arfy/application_faker.rb', line 17

def load_seed
  seed_file = paths["db/seeds"]
  load(seed_file) if File.exist?(seed_file)
end

#pathsObject



13
14
15
# File 'lib/arfy/application_faker.rb', line 13

def paths
  configured_paths
end