instance method
locked?
Ruby on Rails 4.2.9
Since v3.2.22.5 Last seen in v6.1.7.10 PrivateSignature
locked?(arel)
If arel is locked this is a SELECT … FOR UPDATE or somesuch. Such queries should not be cached.
Parameters
-
arelreq
Source
# File activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb, line 90
def locked?(arel)
arel.respond_to?(:locked) && arel.locked
end
Defined in activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb line 90
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::QueryCache