instance method structurally_incompatible_values_for

Ruby on Rails 8.0.4

Since v6.1.7.10 Private

Available in: v6.1.7.10 v7.0.10 v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

structurally_incompatible_values_for(other)

No documentation comment.

Parameters

other req
Source
# File activerecord/lib/active_record/relation/query_methods.rb, line 2267
      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 2267 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::QueryMethods

Type at least 2 characters to search.

↑↓ navigate · open · esc close