aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSean Griffin <sean@thoughtbot.com>2014-10-23 14:10:33 -0600
committerSean Griffin <sean@thoughtbot.com>2014-10-24 09:01:05 -0500
commit0c99711a1564bf1cb213b35142a3c05feddef0bd (patch)
treedbb13a31bc2e9c523066e50a4833b0ee728d218c /lib
parent0e6c7e6de73fdddaf7f1486657f4d9f8e8f5fde3 (diff)
downloadrails-0c99711a1564bf1cb213b35142a3c05feddef0bd.tar.gz
rails-0c99711a1564bf1cb213b35142a3c05feddef0bd.tar.bz2
rails-0c99711a1564bf1cb213b35142a3c05feddef0bd.zip
Binary nodes should not generate the same hash as nodes of other classes
Diffstat (limited to 'lib')
-rw-r--r--lib/arel/nodes/binary.rb2
1 files changed, 1 insertions, 1 deletions
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