Flowdock
method

add_relations_to_bind_values

Importance_0
v4.2.1 - Show latest stable - 0 notes - Class: ActiveRecord::QueryMethods
add_relations_to_bind_values(attributes) 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/query_methods.rb, line 1169
    def add_relations_to_bind_values(attributes)
      if attributes.is_a?(Hash)
        attributes.each_value do |value|
          if value.is_a?(ActiveRecord::Relation)
            self.bind_values += value.arel.bind_values + value.bind_values
          else
            add_relations_to_bind_values(value)
          end
        end
      end
    end
Register or log in to add new notes.