instance method structurally_incompatible_value?

Ruby on Rails edge

Since edge Private — implementation detail, not part of the public API

Signature

structurally_incompatible_value?(method, values)

No documentation comment.

Parameters

method req
values req
Source
# File activerecord/lib/active_record/relation/query_methods.rb, line 2659
      def structurally_incompatible_value?(method, values)
        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.
        return false if v1.is_a?(Array) && v2.nil?

        !(v1 == v2)
      end

Defined in activerecord/lib/active_record/relation/query_methods.rb line 2659 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::QueryMethods

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close