diff options
author | José Valim <jose.valim@gmail.com> | 2009-07-09 10:04:59 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2009-07-09 10:04:59 +0200 |
commit | cca16a015d52a8fde0d4f66970ee333900ca21cc (patch) | |
tree | ddc34e28d6cbacc702566ffed7d3caf860d317ae | |
parent | 09c288f0c5b5f9da4473bb321cccb766d9f59d7e (diff) | |
download | rails-cca16a015d52a8fde0d4f66970ee333900ca21cc.tar.gz rails-cca16a015d52a8fde0d4f66970ee333900ca21cc.tar.bz2 rails-cca16a015d52a8fde0d4f66970ee333900ca21cc.zip |
Do not clean up frameworks on generators environment, otherwise initializers, gems and plugins might not be loaded properly.
-rw-r--r-- | railties/lib/generators/rails/app/templates/config/environments/generators.rb | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/railties/lib/generators/rails/app/templates/config/environments/generators.rb b/railties/lib/generators/rails/app/templates/config/environments/generators.rb index 503a281e20..1b426f5a05 100644 --- a/railties/lib/generators/rails/app/templates/config/environments/generators.rb +++ b/railties/lib/generators/rails/app/templates/config/environments/generators.rb @@ -1,13 +1,12 @@ # Settings specified here will take precedence over those in config/environment.rb -# Cache classes and log when you accidentally call methods on nil. -config.cache_classes = false -config.whiny_nils = true +# No need to reload in generators environment, so do cache classes. +config.cache_classes = true -# We do not need any framework on generators. They are loaded on demand. -config.frameworks.clear +# Log error messages when you accidentally call methods on nil. +config.whiny_nils = true -# Configure generators. Below you have the default values, delete them if you want. +# Configure generators options (below are default values, delete them if you want). config.generators do |g| g.helper = true g.layout = true |