diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2016-02-19 12:33:25 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2016-02-19 12:37:09 +0900 |
commit | 9ceb0ea8d9e19d189b3f5274e95c59a682a3853c (patch) | |
tree | b77f0e7d519687a670d7ae29fce2fe76a0b42624 | |
parent | beda7d1a05f2e0bcc2d0b460f3a1606b38b796e3 (diff) | |
download | rails-9ceb0ea8d9e19d189b3f5274e95c59a682a3853c.tar.gz rails-9ceb0ea8d9e19d189b3f5274e95c59a682a3853c.tar.bz2 rails-9ceb0ea8d9e19d189b3f5274e95c59a682a3853c.zip |
remove needless `debug_exception_response_format` config [ci skip]
Since a0343d11f1bf80a79e273c1d0cf9934ef2601e98, `debug_exception_response_format` config depends on `api_only`.
Therefore, if set the `api_only`, need to specify `debug_exception_response_format` is not.
-rw-r--r-- | guides/source/api_app.md | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/guides/source/api_app.md b/guides/source/api_app.md index 1cc8257172..0598b9c7fa 100644 --- a/guides/source/api_app.md +++ b/guides/source/api_app.md @@ -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 |