diff options
author | Jorge Bejar <jorge@wyeworks.com> | 2015-12-03 15:36:06 -0300 |
---|---|---|
committer | Jorge Bejar <jorge@wyeworks.com> | 2015-12-09 10:53:46 -0300 |
commit | da5acae03266808fdbc9a59f43cf8cf7cf25a24e (patch) | |
tree | 393b0b96efffa02c7f37fc3576af80c62abe8bfa /actionpack/lib/action_dispatch | |
parent | 84e8accd6fb83031e4c27e44925d7596655285f7 (diff) | |
download | rails-da5acae03266808fdbc9a59f43cf8cf7cf25a24e.tar.gz rails-da5acae03266808fdbc9a59f43cf8cf7cf25a24e.tar.bz2 rails-da5acae03266808fdbc9a59f43cf8cf7cf25a24e.zip |
Avoid warning because of the mime type
Diffstat (limited to 'actionpack/lib/action_dispatch')
-rw-r--r-- | actionpack/lib/action_dispatch/middleware/debug_exceptions.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/debug_exceptions.rb b/actionpack/lib/action_dispatch/middleware/debug_exceptions.rb index 642c7183cc..b55c937e0c 100644 --- a/actionpack/lib/action_dispatch/middleware/debug_exceptions.rb +++ b/actionpack/lib/action_dispatch/middleware/debug_exceptions.rb @@ -111,7 +111,7 @@ module ActionDispatch format = content_type else formatted_body = body.to_json - format = Mime::JSON + format = Mime[:json] end render(wrapper.status_code, formatted_body, format) |