123456789_123456789_123456789_123456789_123456789_

Class: Arel::Nodes::Count

Do not use. This class is for internal use only.

Class Method Summary

Instance Attribute Summary

Function - Inherited

Node - Inherited

Instance Method Summary

Function - Inherited

::Arel::FilterPredications - Included

::Arel::WindowPredications - Included

::Arel::Math - Included

#&, #*, #+, #-, #/, #<<, #>>, #^, #|, #~@

::Arel::OrderPredications - Included

::Arel::AliasPredication - Included

#as

::Arel::Predications - Included

::Arel::Expressions - Included

Node - Inherited

#and

Factory method to create an And node.

#fetch_attribute, #invert,
#not

Factory method to create a Nodes::Not node that has the recipient of the caller as a child.

#or

Factory method to create a Grouping node that has an Or node as a child.

#to_sql

FIXME: this method should go away.

::Arel::FactoryMethods - Included

Constructor Details

.new(expr, distinct = false, aliaz = nil) ⇒ Count

[ GitHub ]

  
# File 'activerecord/lib/arel/nodes/count.rb', line 6

def initialize(expr, distinct = false, aliaz = nil)
  super(expr, aliaz)
  @distinct = distinct
end