instance method
add_binds
Ruby on Rails 8.0.4
Since v6.1.7.10Signature
add_binds(binds, proc_for_binds = nil, &)
No documentation comment.
Parameters
-
bindsreq -
proc_for_bindsopt = nil -
&req
Source
# File activerecord/lib/active_record/statement_cache.rb, line 83
def add_binds(binds, proc_for_binds = nil, &)
@binds.concat proc_for_binds ? binds.map(&proc_for_binds) : binds
binds.size.times do |i|
@parts << ", " unless i == 0
@parts << Substitute.new
end
self
end
Defined in activerecord/lib/active_record/statement_cache.rb line 83
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::StatementCache::PartialQueryCollector