lib/grape/validations/coerce.rb in grape-0.2.2 vs lib/grape/validations/coerce.rb in grape-0.2.3

- old
+ new

@@ -10,10 +10,10 @@ def validate_param!(attr_name, params) new_value = coerce_value(@option, params[attr_name]) if valid_type?(new_value) params[attr_name] = new_value else - raise ValidationError, :status => 400, :param => attr_name, :message => "invalid parameter: #{attr_name}" + raise Grape::Exceptions::ValidationError, :status => 400, :param => attr_name, :message => "invalid parameter: #{attr_name}" end end class InvalidValue; end private