Skip to content

Commit

Permalink
Do not clean up frameworks on generators environment, otherwise initi…
Browse files Browse the repository at this point in the history
…alizers, gems and plugins might not be loaded properly.
  • Loading branch information
josevalim committed Jul 9, 2009
1 parent 09c288f commit cca16a0
Showing 1 changed file with 5 additions and 6 deletions.
@@ -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
Expand Down

0 comments on commit cca16a0

Please sign in to comment.