orbit-4-2/db/seeds.rb

9 lines
254 B
Ruby
Raw Normal View History

require 'factory_girl'
require 'faker'
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 }