method
structurally_incompatible_values_for_or
v5.0.0.1 -
Show latest stable
- Class:
ActiveRecord::QueryMethods
structurally_incompatible_values_for_or(other)private
No documentation available.
# File activerecord/lib/active_record/relation/query_methods.rb, line 1218
def structurally_incompatible_values_for_or(other)
Relation::SINGLE_VALUE_METHODS.reject { |m| send("#{m}_value") == other.send("#{m}_value") } +
(Relation::MULTI_VALUE_METHODS - [:extending]).reject { |m| send("#{m}_values") == other.send("#{m}_values") } +
(Relation::CLAUSE_METHODS - [:having, :where]).reject { |m| send("#{m}_clause") == other.send("#{m}_clause") }
end