1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

New hash syntax in AD::DebugExceptions

This commit is contained in:
Jorge Bejar 2015-07-07 13:25:11 -03:00
parent 05d89410bf
commit a16ab35d34

View file

@ -94,10 +94,10 @@ module ActionDispatch
def render_for_api_application(request, wrapper)
body = {
:status => wrapper.status_code,
:error => Rack::Utils::HTTP_STATUS_CODES.fetch(wrapper.status_code, Rack::Utils::HTTP_STATUS_CODES[500]),
:exception => wrapper.exception.inspect,
:traces => wrapper.traces
status: wrapper.status_code,
error: Rack::Utils::HTTP_STATUS_CODES.fetch(wrapper.status_code, Rack::Utils::HTTP_STATUS_CODES[500]),
exception: wrapper.exception.inspect,
traces: wrapper.traces
}
content_type = request.formats.first