instance method
structurally_incompatible_values_for
Ruby on Rails 8.1.2
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 2277
def structurally_incompatible_values_for(other)
values = other.values
STRUCTURAL_VALUE_METHODS.reject do |method|
v1, v2 = @values[method], values[method]
# `and`/`or` are focused to combine where-like clauses, so it relaxes
# the difference when other's multi values are uninitialized.
next true if v1.is_a?(Array) && v2.nil?
v1 == v2
end
end
Defined in activerecord/lib/active_record/relation/query_methods.rb line 2277
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::QueryMethods