instance method
structurally_incompatible_values_for
Ruby on Rails edge
Since v6.1.7.10 Private — implementation detail, not part of the public APISignature
structurally_incompatible_values_for(other)
No documentation comment.
Parameters
-
otherreq
Source
# File activerecord/lib/active_record/relation/query_methods.rb, line 2639
def structurally_incompatible_values_for(other)
values = other.values
# A value set on neither relation can't differ, so only the values set
# on either one are compared. When one differs, every incompatible
# value is collected, in order, for the error message.
if structurally_incompatible_key?(@values, values) || structurally_incompatible_key?(values, values)
STRUCTURAL_VALUE_METHODS.select { |method| structurally_incompatible_value?(method, values) }
else
[]
end
end
Defined in activerecord/lib/active_record/relation/query_methods.rb line 2639
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::QueryMethods