instance method add_binds

Ruby on Rails 8.1.2

Since v6.1.7.10

Available in: v6.1.7.10 v7.0.10 v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

add_binds(binds, proc_for_binds = nil, &)

No documentation comment.

Parameters

binds req
proc_for_binds opt = nil
& req
Source
# File activerecord/lib/active_record/statement_cache.rb, line 87
      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 87 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::StatementCache::PartialQueryCollector

Type at least 2 characters to search.

↑↓ navigate · open · esc close