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

remove needless debug_exception_response_format config [ci skip]

Since a0343d11f1, `debug_exception_response_format` config depends on `api_only`.
Therefore, if set the `api_only`, need to specify `debug_exception_response_format` is not.
This commit is contained in:
yuuji.yaginuma 2016-02-19 12:33:25 +09:00
parent beda7d1a05
commit 9ceb0ea8d9

View file

@ -166,14 +166,6 @@ class definition:
config.api_only = true config.api_only = true
``` ```
Optionally, in `config/environments/development.rb` add the following line
to render error responses using the API format (JSON by default) when it
is a local request:
```ruby
config.debug_exception_response_format = :api
```
Finally, inside `app/controllers/application_controller.rb`, instead of: Finally, inside `app/controllers/application_controller.rb`, instead of:
```ruby ```ruby