From 9ceb0ea8d9e19d189b3f5274e95c59a682a3853c Mon Sep 17 00:00:00 2001 From: "yuuji.yaginuma" Date: Fri, 19 Feb 2016 12:33:25 +0900 Subject: 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. --- guides/source/api_app.md | 8 -------- 1 file changed, 8 deletions(-) (limited to 'guides') 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 -- cgit v1.2.3