aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMatthew Draper <matthew@trebex.net>2016-07-28 00:43:01 +0930
committerMatthew Draper <matthew@trebex.net>2016-07-28 00:43:01 +0930
commitf91d657c09ca4adf34327466c391e3c5e41133af (patch)
treec09fc7a964ed4dc585c370bae604f0445764ddd7 /lib
parent0d70b57978035350672da41074535970272fac95 (diff)
downloadrails-f91d657c09ca4adf34327466c391e3c5e41133af.tar.gz
rails-f91d657c09ca4adf34327466c391e3c5e41133af.tar.bz2
rails-f91d657c09ca4adf34327466c391e3c5e41133af.zip
Fix Casted#hash
There is no @class variable.
Diffstat (limited to 'lib')
-rw-r--r--lib/arel/nodes/casted.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/arel/nodes/casted.rb b/lib/arel/nodes/casted.rb
index 543374d695..6b15f9e4b3 100644
--- a/lib/arel/nodes/casted.rb
+++ b/lib/arel/nodes/casted.rb
@@ -11,7 +11,7 @@ module Arel
def nil?; @val.nil?; end
def hash
- [@class, @val, @attribute].hash
+ [self.class, val, attribute].hash
end
def eql? other