class method
self.run
Ruby on Rails 5.1.7
Since v5.0.7.2 Last seen in v8.0.5.1Signature
self.run()
No documentation comment.
Source
# File activerecord/lib/active_record/query_cache.rb, line 26
def self.run
caching_pool = ActiveRecord::Base.connection_pool
caching_was_enabled = caching_pool.query_cache_enabled
caching_pool.enable_query_cache!
[caching_pool, caching_was_enabled]
end
Defined in activerecord/lib/active_record/query_cache.rb line 26
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::QueryCache