lib/parameters/instance_param.rb in parameters-0.4.2 vs lib/parameters/instance_param.rb in parameters-0.4.3
- old
+ new
@@ -30,10 +30,10 @@
def initialize(object,name,type=nil,description=nil,value=nil)
super(name,type,description)
@object = object
- if (self.value.nil? && value)
+ if (self.value.nil? && !value.nil?)
self.value = case value
when Proc
if value.arity > 0
value.call(@object)
else