Method: Arel::Predications#in

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

#in(other) ⇒ Object



65
66
67
68
69
70
71
72
73
74
# File 'activerecord/lib/arel/predications.rb', line 65

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