aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/api_app.md
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2016-02-19 12:33:25 +0900
committeryuuji.yaginuma <yuuji.yaginuma@gmail.com>2016-02-19 12:37:09 +0900
commit9ceb0ea8d9e19d189b3f5274e95c59a682a3853c (patch)
treeb77f0e7d519687a670d7ae29fce2fe76a0b42624 /guides/source/api_app.md
parentbeda7d1a05f2e0bcc2d0b460f3a1606b38b796e3 (diff)
downloadrails-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.
Diffstat (limited to 'guides/source/api_app.md')
-rw-r--r--guides/source/api_app.md8
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