aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/arel/nodes/count.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/lib/arel/nodes/count.rb')
-rw-r--r--activerecord/lib/arel/nodes/count.rb13
1 files changed, 13 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..4dd9be453f
--- /dev/null
+++ b/activerecord/lib/arel/nodes/count.rb
@@ -0,0 +1,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