提交 cca16a01 编写于 作者: J José Valim

Do not clean up frameworks on generators environment, otherwise initializers,...

Do not clean up frameworks on generators environment, otherwise initializers, gems and plugins might not be loaded properly.
上级 09c288f0
# 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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册