diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2009-11-03 18:58:40 -0800 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2009-11-03 18:58:40 -0800 |
commit | a3d5274e67c841a6fdc9f9acb9e1b6bbc351dd28 (patch) | |
tree | 78b1ab39446198e36b994215eacb1138438322ba /railties/lib/rails/application.rb | |
parent | d627c932bdc5c0e2911e39cfb38952c29dab7afc (diff) | |
download | rails-a3d5274e67c841a6fdc9f9acb9e1b6bbc351dd28.tar.gz rails-a3d5274e67c841a6fdc9f9acb9e1b6bbc351dd28.tar.bz2 rails-a3d5274e67c841a6fdc9f9acb9e1b6bbc351dd28.zip |
Configure generator when needed rather than during initialization
Diffstat (limited to 'railties/lib/rails/application.rb')
-rw-r--r-- | railties/lib/rails/application.rb | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/railties/lib/rails/application.rb b/railties/lib/rails/application.rb index ce3ab9147c..242aea1842 100644 --- a/railties/lib/rails/application.rb +++ b/railties/lib/rails/application.rb @@ -412,18 +412,6 @@ module Rails end end - # Configure generators if they were already loaded - # === - # TODO: Does this need to be an initializer here? - initializer :initialize_generators do - if defined?(RAILS_GENERATORS) && RAILS_GENERATORS - require 'rails/generators' - Rails::Generators.no_color! unless config.generators.colorize_logging - Rails::Generators.aliases.deep_merge! config.generators.aliases - Rails::Generators.options.deep_merge! config.generators.options - end - end - # For each framework, search for instrument file with Notifications hooks. # initializer :load_notifications_hooks do |