aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/generators/rails/app/templates/config/environments
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2009-07-09 10:04:59 +0200
committerJosé Valim <jose.valim@gmail.com>2009-07-09 10:04:59 +0200
commitcca16a015d52a8fde0d4f66970ee333900ca21cc (patch)
treeddc34e28d6cbacc702566ffed7d3caf860d317ae /railties/lib/generators/rails/app/templates/config/environments
parent09c288f0c5b5f9da4473bb321cccb766d9f59d7e (diff)
downloadrails-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.
Diffstat (limited to 'railties/lib/generators/rails/app/templates/config/environments')
-rw-r--r--railties/lib/generators/rails/app/templates/config/environments/generators.rb11
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