method

add_binds

Importance_0
v7.1.3.2 - Show latest stable - 0 notes - Class: PartialQueryCollector
add_binds(binds, proc_for_binds = nil) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide 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
Register or log in to add new notes.