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:
parent
05d89410bf
commit
a16ab35d34
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue