This project is archived and is in readonly mode.
Changeset [f851352318c7468db310e5fbea0d86dc8b731c6d] by Piotr Sarnacki
September 30th, 2010 @ 08:47 AM
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
http://github.com/rails/rails/commit/f851352318c7468db310e5fbea0d86...
Committed by Piotr Sarnacki
- M activerecord/lib/active_record/railtie.rb
- M railties/lib/rails/application/configuration.rb
- M railties/lib/rails/railtie/configuration.rb
- M railties/lib/rails/test_unit/railtie.rb
- M railties/test/railties/engine_test.rb
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>