rails--rails/railties/lib/rails/application
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
..
bootstrap.rb Allow Engines loading its own environment file from config/environments 2010-09-03 22:59:04 +02:00
configuration.rb Added config.app_generators to allow configuring application's generators from railties. 2010-09-30 09:47:06 +02:00
finisher.rb Update Rails' built in routes to use RouteSet#append 2010-09-17 12:27:48 -07:00
railties.rb Move singleton pattern to Railtie and remove Engine::Configurable and Application::Configurable in favor of unified Railtie::Configurable 2010-09-03 22:59:05 +02:00