Sha256: b47e04b4b4b49df5801b047c92ce9813791467fe56e736f278c0758c9081edd7

Contents?: true

Size: 332 Bytes

Versions: 6

Compression:

Stored size: 332 Bytes

Contents

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
factory_girl_rails-1.1.0 lib/factory_girl_rails/railtie.rb
factory_girl_rails-1.1.rc1 lib/factory_girl_rails/railtie.rb
factory_girl_rails-1.1.beta4 lib/factory_girl_rails/railtie.rb
factory_girl_rails-1.1.beta3 lib/factory_girl_rails/railtie.rb
factory_girl_rails-1.1.beta2 lib/factory_girl_rails/railtie.rb
factory_girl_rails-1.1.beta1 lib/factory_girl_rails/railtie.rb