lib/grape/error_formatter/json.rb in grape-0.19.2 vs lib/grape/error_formatter/json.rb in grape-1.0.0
- old
+ new
@@ -8,10 +8,10 @@
result = wrap_message(present(message, env))
if (options[:rescue_options] || {})[:backtrace] && backtrace && !backtrace.empty?
result = result.merge(backtrace: backtrace)
end
- MultiJson.dump(result)
+ ::Grape::Json.dump(result)
end
private
def wrap_message(message)