Flowdock
method

_substitute_values

Importance_0
v6.0.0 - Show latest stable - 0 notes - Class: ActiveRecord::Relation
_substitute_values(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/relation.rb, line 777
      def _substitute_values(values)
        values.map do |name, value|
          attr = arel_attribute(name)
          unless Arel.arel_node?(value)
            type = klass.type_for_attribute(attr.name)
            value = predicate_builder.build_bind_attribute(attr.name, type.cast(value))
          end
          [attr, value]
        end
      end
Register or log in to add new notes.