aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel
diff options
context:
space:
mode:
Diffstat (limited to 'lib/arel')
-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 &&