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:
parent
beda7d1a05
commit
9ceb0ea8d9
1 changed files with 0 additions and 8 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue