From db71ab522b29509ca4c8158ec2eee2fc55790fb2 Mon Sep 17 00:00:00 2001 From: YasuOza Date: Fri, 16 Nov 2012 11:07:02 +0900 Subject: [PATCH] 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. --- .../rails/app/templates/config/environments/production.rb.tt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/railties/lib/rails/generators/rails/app/templates/config/environments/production.rb.tt b/railties/lib/rails/generators/rails/app/templates/config/environments/production.rb.tt index 9df53bd6c95cf..ac5cb8b6e54ce 100644 --- a/railties/lib/rails/generators/rails/app/templates/config/environments/production.rb.tt +++ b/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