diff options
Diffstat (limited to 'activerecord/lib/arel/nodes/count.rb')
-rw-r--r-- | activerecord/lib/arel/nodes/count.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/activerecord/lib/arel/nodes/count.rb b/activerecord/lib/arel/nodes/count.rb new file mode 100644 index 0000000000..c8e409ea8b --- /dev/null +++ b/activerecord/lib/arel/nodes/count.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +module Arel # :nodoc: all + 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 |