Flowdock
method

substitute_values

Importance_0
Ruby on Rails latest stable (v5.2.3) - 0 notes - Class: ActiveRecord::Relation

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v5.1.7) is shown here.

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.