Flowdock
method

invert_predicate

Importance_0
Ruby on Rails latest stable (v6.1.7.7) - 0 notes - Class: WhereClause
invert_predicate(node) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/relation/where_clause.rb, line 183
        def invert_predicate(node)
          case node
          when NilClass
            raise ArgumentError, "Invalid argument for .where.not(), got nil."
          when String
            Arel::Nodes::Not.new(Arel::Nodes::SqlLiteral.new(node))
          else
            node.invert
          end
        end
Register or log in to add new notes.