aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/arel/nodes/count.rb
blob: 4dd9be453fa8e491be856bee8f9d5d41461bd61c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
# 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