orbit-basic/db/seeds.rb

9 lines
254 B
Ruby
Raw Permalink Normal View History

2012-11-15 17:53:17 +00:00
require 'factory_girl'
2012-11-26 16:05:04 +00:00
require 'faker'
2012-11-26 03:52:11 +00:00
2013-01-17 07:57:12 +00:00
FactoryGirl.definition_file_paths = Dir["#{Rails.root}/vendor/built_in_modules/*/spec/factories"]
FactoryGirl.find_definitions
Dir["#{Rails.root}/vendor/built_in_modules/*/db/seeds.rb"].each { |seed| load seed }