1 2 3 4 5 6 7 8 9 10 11 12 13 14
module Arel module Nodes class Count < Arel::Nodes::Function include Arel::Expression attr_accessor :distinct def initialize expr, distinct = false, aliaz = nil super(expr, aliaz) @distinct = distinct end end end end