Skip to content
This repository
Browse code

Merge pull request #11279 from jetthoughts/removed_threadsafe_deprect…

…aed_option

Removed deprecated threadsafe! from Rails Config
  • Loading branch information...
commit e6041caee7b7fb7b983355649202cb51cc6dacf4 2 parents 6707f92 + d7f8724
Rafael Mendonça França authored July 03, 2013
10  railties/lib/rails/application/configuration.rb
@@ -87,16 +87,6 @@ def paths
87 87
         end
88 88
       end
89 89
 
90  
-      def threadsafe!
91  
-        message = "config.threadsafe! is deprecated. Rails applications " \
92  
-                  "behave by default as thread safe in production as long as config.cache_classes and " \
93  
-                  "config.eager_load are set to true"
94  
-        ActiveSupport::Deprecation.warn message
95  
-        @cache_classes = true
96  
-        @eager_load = true
97  
-        self
98  
-      end
99  
-
100 90
       # Loads and returns the configuration of the database.
101 91
       def database_configuration
102 92
         yaml = paths["config/database"].first

0 notes on commit e6041ca

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