instance method
structurally_incompatible_values_for
Ruby on Rails 7.2.3
Since v6.1.7.10 PrivateSignature
structurally_incompatible_values_for(other)
No documentation comment.
Parameters
-
otherreq
Source
# File activerecord/lib/active_record/relation/query_methods.rb, line 2223
def structurally_incompatible_values_for(other)
values = other.values
STRUCTURAL_VALUE_METHODS.reject do |method|
v1, v2 = @values[method], values[method]
if v1.is_a?(Array)
next true unless v2.is_a?(Array)
v1 = v1.uniq
v2 = v2.uniq
end
v1 == v2
end
end
Defined in activerecord/lib/active_record/relation/query_methods.rb line 2223
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::QueryMethods