diff options
Diffstat (limited to 'activerecord/lib/arel/nodes/terminal.rb')
-rw-r--r-- | activerecord/lib/arel/nodes/terminal.rb | 15 |
1 files changed, 15 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..3a1cd7f0e1 --- /dev/null +++ b/activerecord/lib/arel/nodes/terminal.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true +module Arel + 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 |