method

replace_bind_variables

Importance_0
v3.1.0 - Show latest stable - 0 notes - Class: ActiveRecord::Base
replace_bind_variables(statement, values) protected

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/base.rb, line 1464
        def replace_bind_variables(statement, values) #:nodoc:
          raise_if_bind_arity_mismatch(statement, statement.count('?'), values.size)
          bound = values.dup
          c = connection
          statement.gsub('?') { quote_bound_value(bound.shift, c) }
        end
Register or log in to add new notes.