Flowdock
method

replace_bind_variables

Importance_0
Ruby on Rails latest stable (v6.1.7.7) - 0 notes - Class: ClassMethods
replace_bind_variables(statement, values) private

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/sanitization.rb, line 153
        def replace_bind_variables(statement, values)
          raise_if_bind_arity_mismatch(statement, statement.count("?"), values.size)
          bound = values.dup
          c = connection
          statement.gsub(/\?/) do
            replace_bind_variable(bound.shift, c)
          end
        end
Register or log in to add new notes.