1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/lib
Piotr Sarnacki f851352318 Added config.app_generators to allow configuring application's generators from railties.
With config.generators becomes a way to configure generators
for current instance only. For example:

module Blog
  class Engine < Rails::Engine
    config.generators do |g|
      g.orm :active_record
    end

    config.app_generators do |g|
      g.test_framework :rspec
    end
  end
end

such definition sets :active_record as orm for engine and :rspec
as test_framework for application. The values set with app_generators
can be overwritten in application using config.generators as you would
normally do:

module MyApp
  class Application < Rails::Application
    config.generators do |g|
      g.test_framework :test_unit
    end
  end
end
2010-09-30 09:47:06 +02:00
..
active_record Added config.app_generators to allow configuring application's generators from railties. 2010-09-30 09:47:06 +02:00
rails/generators Add namespacing for observer generator 2010-09-25 17:28:10 +02:00
active_record.rb mass_assignment_security moved from AR to AMo, and minor test cleanup 2010-07-08 18:28:45 +02:00