Class: ActiveRecord::Query::And

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



34
35
36
37
# File 'lib/active_record/query/context.rb', line 34

def <<(node)
  super
  true
end

#nodesObject



30
31
32
# File 'lib/active_record/query/context.rb', line 30

def nodes
  Arel::Nodes::And.new(@nodes)
end