Sha256: d3e30a2ee83d2800e0908c4ef9ae3c26e1b19fb69f25a00265e2388228f39902

Contents?: true

Size: 525 Bytes

Versions: 3

Compression:

Stored size: 525 Bytes

Contents

require 'factory_girl'
require 'factory_factory_girl/configuration'
require 'rails'

module FactoryGirl
  class Railtie < Rails::Railtie

    initializer "factory_factory_girl.get_test_framework" do
      FactoryFactoryGirl.configure do |c|
        c.rails_options = if config.respond_to?(:app_generators)
                            config.app_generators.options[:rails]
                          else
                            config.generators.options[:rails]
                          end
      end
    end
  end
end


Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
factory_factory_girl-0.1.7 lib/factory_factory_girl/railtie.rb
factory_factory_girl-0.1.6 lib/factory_factory_girl/railtie.rb
factory_factory_girl-0.1.5 lib/factory_factory_girl/railtie.rb