diff options
author | Ernie Miller <ernie@ernie.io> | 2016-02-17 16:40:27 -0500 |
---|---|---|
committer | Ernie Miller <ernie@ernie.io> | 2016-02-17 16:40:27 -0500 |
commit | 1beac5b00395e2007181a10b5c70df113b4ed917 (patch) | |
tree | ba4d835e051c0258610560a5f409a9f10e704912 /lib/arel/nodes/casted.rb | |
parent | 148348278241998e004c411deb3a6cfb7cf71213 (diff) | |
parent | df9dd77ee5cf2610599942555e49dedd678a8e8b (diff) | |
download | rails-1beac5b00395e2007181a10b5c70df113b4ed917.tar.gz rails-1beac5b00395e2007181a10b5c70df113b4ed917.tar.bz2 rails-1beac5b00395e2007181a10b5c70df113b4ed917.zip |
Merge pull request #414 from bertBruynooghe/master
added Casted#hash
Diffstat (limited to 'lib/arel/nodes/casted.rb')
-rw-r--r-- | lib/arel/nodes/casted.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/arel/nodes/casted.rb b/lib/arel/nodes/casted.rb index 9fa02955ef..543374d695 100644 --- a/lib/arel/nodes/casted.rb +++ b/lib/arel/nodes/casted.rb @@ -10,6 +10,10 @@ module Arel def nil?; @val.nil?; end + def hash + [@class, @val, @attribute].hash + end + def eql? other self.class == other.class && self.val == other.val && |