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.rb12
1 files changed, 12 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..880464639d
--- /dev/null
+++ b/activerecord/lib/arel/nodes/count.rb
@@ -0,0 +1,12 @@
+# frozen_string_literal: true
+
+module Arel # :nodoc: all
+ module Nodes
+ class Count < Arel::Nodes::Function
+ def initialize(expr, distinct = false, aliaz = nil)
+ super(expr, aliaz)
+ @distinct = distinct
+ end
+ end
+ end
+end