method

in

Importance_0
v6.0.0 - Show latest stable - 0 notes - Class: Predications
in(other) public

No documentation

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

Hide source
# 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
Register or log in to add new notes.