diff options
Diffstat (limited to 'lib/arel/nodes/true.rb')
-rw-r--r-- | lib/arel/nodes/true.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/arel/nodes/true.rb b/lib/arel/nodes/true.rb index 796b5b9348..fdb8ed2095 100644 --- a/lib/arel/nodes/true.rb +++ b/lib/arel/nodes/true.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true module Arel module Nodes - class True < Arel::Nodes::Node + class True < 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 |