Class: ActiveRecord::Query::Or
- Inherits:
-
Context
- Object
- Context
- ActiveRecord::Query::Or
show all
- Defined in:
- lib/active_record/query/context.rb
Instance Method Summary
collapse
Methods inherited from Context
#arel, #initialize
Instance Method Details
#<<(node) ⇒ Object
23
24
25
26
|
# File 'lib/active_record/query/context.rb', line 23
def <<(node)
super
false
end
|
#nodes ⇒ Object
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
|