Flowdock
method

substitute_values

Importance_0
v5.1.7 - Show latest stable - 0 notes - Class: ActiveRecord::Relation
substitute_values(values) 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/relation.rb, line 92
    def substitute_values(values) # :nodoc:
      binds = []
      substitutes = []

      values.each do |arel_attr, value|
        binds.push QueryAttribute.new(arel_attr.name, value, klass.type_for_attribute(arel_attr.name))
        substitutes.push [arel_attr, Arel::Nodes::BindParam.new]
      end

      [substitutes, binds]
    end
Register or log in to add new notes.