diff options
author | kami-zh <hiroki.zenigami@gmail.com> | 2017-12-27 13:37:38 +0900 |
---|---|---|
committer | kami-zh <hiroki.zenigami@gmail.com> | 2017-12-27 13:37:38 +0900 |
commit | 13c66b12445bbaf18850b564fbe19f589fd019fe (patch) | |
tree | 9365a5c5314f5631e0b5b49b9a3e8172243dd675 /railties/lib/rails | |
parent | 6783bcab7ab11f2ced4b711d3518422e35e3dc01 (diff) | |
download | rails-13c66b12445bbaf18850b564fbe19f589fd019fe.tar.gz rails-13c66b12445bbaf18850b564fbe19f589fd019fe.tar.bz2 rails-13c66b12445bbaf18850b564fbe19f589fd019fe.zip |
Fix comment about initializers to adapt to the fact
Currently the comment says application configuration should go into
files in `config/initializers`.
However some configuration couldn't initialize correctly because of the
initializing process(e.g. `config.time_zone`).
It should be changed by framework but this is large change and it may occur
malfunction to some applications which depends on current initializing
process.
So this comment is changed to adapt to the fact.
Diffstat (limited to 'railties/lib/rails')
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/config/application.rb.tt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/config/application.rb.tt b/railties/lib/rails/generators/rails/app/templates/config/application.rb.tt index 9e03e86771..d1a09f9c3c 100644 --- a/railties/lib/rails/generators/rails/app/templates/config/application.rb.tt +++ b/railties/lib/rails/generators/rails/app/templates/config/application.rb.tt @@ -27,8 +27,9 @@ module <%= app_const_base %> config.load_defaults <%= Rails::VERSION::STRING.to_f %> # Settings in config/environments/* take precedence over those specified here. - # Application configuration should go into files in config/initializers - # -- all .rb files in that directory are automatically loaded. + # Application configuration can go into files in config/initializers + # -- all .rb files in that directory are automatically loaded after loading + # the framework and any gems in your application. <%- if options.api? -%> # Only loads a smaller set of middleware suitable for API only apps. |