diff options
author | Jorge Bejar <jorge@wyeworks.com> | 2015-07-07 13:25:11 -0300 |
---|---|---|
committer | Jorge Bejar <jorge@wyeworks.com> | 2015-12-09 10:53:44 -0300 |
commit | a16ab35d34a3bc6440994fe20afc2eced096b618 (patch) | |
tree | 6c2c4bfb7fd6aac68d486eb334957176bea7f8d5 /actionpack/lib | |
parent | 05d89410bf97d0778e78558db3c9fed275f8a614 (diff) | |
download | rails-a16ab35d34a3bc6440994fe20afc2eced096b618.tar.gz rails-a16ab35d34a3bc6440994fe20afc2eced096b618.tar.bz2 rails-a16ab35d34a3bc6440994fe20afc2eced096b618.zip |
New hash syntax in AD::DebugExceptions
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_dispatch/middleware/debug_exceptions.rb | 8 |
1 files changed, 4 insertions, 4 deletions
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 |