lib/grape/validations/validators/base.rb in grape-1.5.2 vs lib/grape/validations/validators/base.rb in grape-1.5.3
- old
+ new
@@ -53,10 +53,10 @@
rescue Grape::Exceptions::Validation => e
array_errors << e
end
end
- raise Grape::Exceptions::ValidationArrayErrors, array_errors if array_errors.any?
+ raise Grape::Exceptions::ValidationArrayErrors.new(array_errors) if array_errors.any?
end
def self.convert_to_short_name(klass)
ret = klass.name.gsub(/::/, '/')
ret.gsub!(/([A-Z]+)([A-Z][a-z])/, '\1_\2')