Class: ActiveRecord::Query::Or

Inherits:
Context
  • Object
show all
Defined in:
lib/active_record/query/context.rb

Instance Method Summary collapse

Methods inherited from Context

#arel, #initialize

Constructor Details

This class inherits a constructor from ActiveRecord::Query::Context

Instance Method Details

#<<(node) ⇒ Object



23
24
25
26
# File 'lib/active_record/query/context.rb', line 23

def <<(node)
  super
  false
end

#nodesObject



19
20
21
# File 'lib/active_record/query/context.rb', line 19

def nodes
  @nodes.inject { |mem, node| Arel::Nodes::Or.new(mem, node) }
end