aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/arel/nodes/count.rb
blob: 3f138738efeef81ad041c03630b6c0ed2b805eb5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true

module Arel
  module Nodes
    class Count < Arel::Nodes::Function
      include Math

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