Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

config.threasafe! deprecated waning in config/environments/production.rb

Since Rails 4.0 config.threadsafe! is enabled by default.
We have to strongly warn to users by not only showing deprecated warnings when
user use this option, but also writing deprecated warnings in config file.
  • Loading branch information...
commit db71ab522b29509ca4c8158ec2eee2fc55790fb2 1 parent 44f12bb
Yasuharu Ozaki authored
3  railties/lib/rails/generators/rails/app/templates/config/environments/production.rb.tt
@@ -66,6 +66,9 @@
66 66 # config.action_mailer.raise_delivery_errors = false
67 67
68 68 # Enable threaded mode.
  69 + # config.threadsafe! is deprecated. Rails application behave
  70 + # by default as thread safe in production as long as config.cache_classes and
  71 + # config.eager_load are set to true.
69 72 # config.threadsafe!
70 73
71 74 # Enable locale fallbacks for I18n (makes lookups for any locale fall back to

0 comments on commit db71ab5

Please sign in to comment.
Something went wrong with that request. Please try again.