diff options
Diffstat (limited to 'lib/arel/nodes/terminal.rb')
-rw-r--r-- | lib/arel/nodes/terminal.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/arel/nodes/terminal.rb b/lib/arel/nodes/terminal.rb index 6f60fe006f..3a1cd7f0e1 100644 --- a/lib/arel/nodes/terminal.rb +++ b/lib/arel/nodes/terminal.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true module Arel module Nodes - class Distinct < Arel::Nodes::Node + class Distinct < Arel::Nodes::NodeExpression def hash self.class.hash end @@ -9,6 +9,7 @@ module Arel def eql? other self.class == other.class end + alias :== :eql? end end end |