require 'factory_girl'
require 'rails'

module FactoryGirl
  class Railtie < Rails::Railtie
    config.after_initialize do
      FactoryGirl.definition_file_paths = [
        File.join(Rails.root, 'test', 'factories'),
        File.join(Rails.root, 'spec', 'factories')
      ]
      FactoryGirl.find_definitions
    end
  end
end


require 'factory_girl'
require 'rails'

module FactoryGirl
  class Railtie < Rails::Railtie
    config.after_initialize do
      FactoryGirl.definition_file_paths = [
        File.join(Rails.root, 'factories'),
        File.join(Rails.root, 'test', 'factories'),
        File.join(Rails.root, 'spec', 'factories')
      ]
      FactoryGirl.find_definitions
    end
  end
end


Load factories from /factories at the Rails root, just like the default definition_file_paths.
Load factories from /factories at the Rails root, just like the default definition_file_paths.
