From a16ab35d34a3bc6440994fe20afc2eced096b618 Mon Sep 17 00:00:00 2001 From: Jorge Bejar Date: Tue, 7 Jul 2015 13:25:11 -0300 Subject: New hash syntax in AD::DebugExceptions --- actionpack/lib/action_dispatch/middleware/debug_exceptions.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'actionpack/lib/action_dispatch/middleware') diff --git a/actionpack/lib/action_dispatch/middleware/debug_exceptions.rb b/actionpack/lib/action_dispatch/middleware/debug_exceptions.rb index c81f52ec88..3093b6a8a6 100644 --- a/actionpack/lib/action_dispatch/middleware/debug_exceptions.rb +++ b/actionpack/lib/action_dispatch/middleware/debug_exceptions.rb @@ -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 -- cgit v1.2.3