aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/nodes/count.rb
blob: c6e19afb348206795dc9165f3c371373fb4968bd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
module Arel
  module Nodes
    class Count < Arel::Nodes::Function

      attr_accessor :distinct

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