Method: Arel::Predications#not_in

Defined in:
activerecord/lib/arel/predications.rb

#not_in(other) ⇒ Object



112
113
114
115
116
117
118
119
120
121
# File 'activerecord/lib/arel/predications.rb', line 112

def not_in(other)
  case other
  when Arel::SelectManager
    Arel::Nodes::NotIn.new(self, other.ast)
  when Enumerable
    Nodes::NotIn.new self, quoted_array(other)
  else
    Nodes::NotIn.new self, quoted_node(other)
  end
end