lib/grape/validations/validators/default.rb in grape-1.3.2 vs lib/grape/validations/validators/default.rb in grape-1.3.3
- old
+ new
@@ -7,10 +7,9 @@
@default = options
super
end
def validate_param!(attr_name, params)
- return if params.key? attr_name
params[attr_name] = if @default.is_a? Proc
@default.call
elsif @default.frozen? || !duplicatable?(@default)
@default
else