From 0c99711a1564bf1cb213b35142a3c05feddef0bd Mon Sep 17 00:00:00 2001 From: Sean Griffin Date: Thu, 23 Oct 2014 14:10:33 -0600 Subject: Binary nodes should not generate the same hash as nodes of other classes --- lib/arel/nodes/binary.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/arel/nodes') diff --git a/lib/arel/nodes/binary.rb b/lib/arel/nodes/binary.rb index e35d2fd2e7..dddbde1431 100644 --- a/lib/arel/nodes/binary.rb +++ b/lib/arel/nodes/binary.rb @@ -16,7 +16,7 @@ module Arel end def hash - [@left, @right].hash + [self.class, @left, @right].hash end def eql? other -- cgit v1.2.3