lib/grape/validations/validators/presence.rb in grape-0.16.2 vs lib/grape/validations/validators/presence.rb in grape-0.17.0
- old
+ new
@@ -6,10 +6,10 @@
super
end
def validate_param!(attr_name, params)
return if params.respond_to?(:key?) && params.key?(attr_name)
- fail Grape::Exceptions::Validation, params: [@scope.full_name(attr_name)], message: message(:presence)
+ raise Grape::Exceptions::Validation, params: [@scope.full_name(attr_name)], message: message(:presence)
end
end
end
end