Browse files

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...
1 parent 44f12bb commit db71ab522b29509ca4c8158ec2eee2fc55790fb2 @yasuoza committed Nov 16, 2012
View
3 railties/lib/rails/generators/rails/app/templates/config/environments/production.rb.tt
@@ -66,6 +66,9 @@
# config.action_mailer.raise_delivery_errors = false
# Enable threaded mode.
+ # config.threadsafe! is deprecated. Rails application behave
+ # by default as thread safe in production as long as config.cache_classes and
+ # config.eager_load are set to true.
# config.threadsafe!
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to

0 comments on commit db71ab5

Please sign in to comment.