diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/arel/nodes/bind_param.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/arel/nodes/bind_param.rb b/lib/arel/nodes/bind_param.rb index d55f4c1c8e..225fcc4798 100644 --- a/lib/arel/nodes/bind_param.rb +++ b/lib/arel/nodes/bind_param.rb @@ -2,7 +2,7 @@ module Arel module Nodes class BindParam < Node - attr_reader :value + attr_accessor :value def initialize(value) @value = value @@ -13,6 +13,10 @@ module Arel other.is_a?(BindParam) && value == other.value end + + def nil? + value.nil? + end end end end |