instance method
skip_query_cache_if_necessary
Ruby on Rails 7.1.6
Since v5.2.8.1 Private — implementation detail, not part of the public APISignature
skip_query_cache_if_necessary(&block)
No documentation comment.
Parameters
-
blockblock
Source
# File activerecord/lib/active_record/relation.rb, line 1024
def skip_query_cache_if_necessary(&block)
if skip_query_cache_value
uncached(&block)
else
yield
end
end
Defined in activerecord/lib/active_record/relation.rb line 1024
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Relation