aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorJon Moss <maclover7@users.noreply.github.com>2016-02-18 23:21:55 -0500
committerJon Moss <maclover7@users.noreply.github.com>2016-02-18 23:21:55 -0500
commitf391840c36c6a58ab69514b2745b54046b36d67e (patch)
treeb77f0e7d519687a670d7ae29fce2fe76a0b42624 /guides
parentbeda7d1a05f2e0bcc2d0b460f3a1606b38b796e3 (diff)
parent9ceb0ea8d9e19d189b3f5274e95c59a682a3853c (diff)
downloadrails-f391840c36c6a58ab69514b2745b54046b36d67e.tar.gz
rails-f391840c36c6a58ab69514b2745b54046b36d67e.tar.bz2
rails-f391840c36c6a58ab69514b2745b54046b36d67e.zip
Merge pull request #23771 from y-yagi/remove_needless_debug_exception_response_format_config
remove needless `debug_exception_response_format` config [ci skip]
Diffstat (limited to 'guides')
-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