diff options
Diffstat (limited to 'railties/lib')
-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 |