1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/lib/arel/nodes/count.rb

13 lines
254 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2018-02-24 01:45:50 -05:00
2018-02-24 02:41:47 -05:00
module Arel # :nodoc: all
2010-08-23 13:14:02 -04:00
module Nodes
2010-09-08 19:23:15 -04:00
class Count < Arel::Nodes::Function
2018-02-24 01:45:50 -05:00
def initialize(expr, distinct = false, aliaz = nil)
2010-09-08 19:23:15 -04:00
super(expr, aliaz)
@distinct = distinct
2010-08-23 13:14:02 -04:00
end
end
end
end