Skip to content

Commit

Permalink
remove needless debug_exception_response_format config [ci skip]
Browse files Browse the repository at this point in the history
Since a0343d1, `debug_exception_response_format` config depends on `api_only`.
Therefore, if set the `api_only`, need to specify `debug_exception_response_format` is not.
  • Loading branch information
y-yagi committed Feb 19, 2016
1 parent beda7d1 commit 9ceb0ea
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions guides/source/api_app.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,14 +166,6 @@ class definition:
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:

```ruby
Expand Down

0 comments on commit 9ceb0ea

Please sign in to comment.