instance method
select_all
Ruby on Rails 4.2.9
Since v3.0.20 Last seen in v7.0.10Signature
select_all(arel, name = nil, binds = [])
No documentation comment.
Parameters
-
arelreq -
nameopt = nil -
bindsopt = []
Source
# File activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb, line 64
def select_all(arel, name = nil, binds = [])
if @query_cache_enabled && !locked?(arel)
arel, binds = binds_from_relation arel, binds
sql = to_sql(arel, binds)
cache_sql(sql, binds) { super(sql, name, binds) }
else
super
end
end
Defined in activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb line 64
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::QueryCache