aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBert Bruynooghe <bert.bruynooghe@up-nxt.com>2016-02-17 22:30:10 +0100
committerBert Bruynooghe <bert.bruynooghe@up-nxt.com>2016-02-17 22:30:10 +0100
commitdf9dd77ee5cf2610599942555e49dedd678a8e8b (patch)
treeba4d835e051c0258610560a5f409a9f10e704912 /lib
parent148348278241998e004c411deb3a6cfb7cf71213 (diff)
downloadrails-df9dd77ee5cf2610599942555e49dedd678a8e8b.tar.gz
rails-df9dd77ee5cf2610599942555e49dedd678a8e8b.tar.bz2
rails-df9dd77ee5cf2610599942555e49dedd678a8e8b.zip
added Casted#hash
Diffstat (limited to 'lib')
-rw-r--r--lib/arel/nodes/casted.rb4
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 &&