From cca16a015d52a8fde0d4f66970ee333900ca21cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Thu, 9 Jul 2009 10:04:59 +0200 Subject: Do not clean up frameworks on generators environment, otherwise initializers, gems and plugins might not be loaded properly. --- .../rails/app/templates/config/environments/generators.rb | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'railties/lib/generators/rails/app/templates/config/environments') 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 -- cgit v1.2.3