diff options
Diffstat (limited to 'lib/arel/nodes/bind_param.rb')
-rw-r--r-- | lib/arel/nodes/bind_param.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/arel/nodes/bind_param.rb b/lib/arel/nodes/bind_param.rb index 225fcc4798..efa4f452d4 100644 --- a/lib/arel/nodes/bind_param.rb +++ b/lib/arel/nodes/bind_param.rb @@ -9,10 +9,15 @@ module Arel super() end - def ==(other) + def hash + [self.class, self.value].hash + end + + def eql?(other) other.is_a?(BindParam) && value == other.value end + alias :== :eql? def nil? value.nil? |