method

structurally_incompatible_values_for

structurally_incompatible_values_for(other)
private

No documentation available.

# 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