aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/arel/nodes/terminal.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/lib/arel/nodes/terminal.rb')
-rw-r--r--activerecord/lib/arel/nodes/terminal.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/activerecord/lib/arel/nodes/terminal.rb b/activerecord/lib/arel/nodes/terminal.rb
new file mode 100644
index 0000000000..d84c453f1a
--- /dev/null
+++ b/activerecord/lib/arel/nodes/terminal.rb
@@ -0,0 +1,16 @@
+# frozen_string_literal: true
+
+module Arel # :nodoc: all
+ module Nodes
+ class Distinct < Arel::Nodes::NodeExpression
+ def hash
+ self.class.hash
+ end
+
+ def eql?(other)
+ self.class == other.class
+ end
+ alias :== :eql?
+ end
+ end
+end