method
in
v6.0.0 -
Show latest stable
- Class:
Arel::Predications
in(other)public
No documentation available.
# File activerecord/lib/arel/predications.rb, line 59
def in(other)
case other
when Arel::SelectManager
Arel::Nodes::In.new(self, other.ast)
when Range
if $VERBOSE
warn Passing a range to `#in` is deprecated. Call `#between`, instead.
end
between(other)
when Enumerable
Nodes::In.new self, quoted_array(other)
else
Nodes::In.new self, quoted_node(other)
end
end