instance method
threadsafe!
Ruby on Rails 4.0.13
Since v3.0.20 Last seen in v4.0.13Signature
threadsafe!()
No documentation comment.
Source
# File railties/lib/rails/application/configuration.rb, line 91
def threadsafe!
message = "config.threadsafe! is deprecated. Rails applications " \
"behave by default as thread safe in production as long as config.cache_classes and " \
"config.eager_load are set to true"
ActiveSupport::Deprecation.warn message
@cache_classes = true
@eager_load = true
self
end
Defined in railties/lib/rails/application/configuration.rb line 91
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Rails::Application::Configuration