diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2015-12-09 15:26:46 -0300 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2015-12-09 15:26:46 -0300 |
commit | b11bca98bf5431ce9522c6b5707f51cd8d7f401c (patch) | |
tree | f665325e17cb88cdc8b8ae3ef8750806a02ed0c3 /actionpack/CHANGELOG.md | |
parent | b05801754f6423a1d90954ef3f6e2f5dc55c6320 (diff) | |
parent | cdb7a8477ff19f8ed6f549cedc901bd5934a61e8 (diff) | |
download | rails-b11bca98bf5431ce9522c6b5707f51cd8d7f401c.tar.gz rails-b11bca98bf5431ce9522c6b5707f51cd8d7f401c.tar.bz2 rails-b11bca98bf5431ce9522c6b5707f51cd8d7f401c.zip |
Merge pull request #20831 from jmbejar/rails-api-json-error-response
Rails API: Ability to return error responses in json format also in development
Diffstat (limited to 'actionpack/CHANGELOG.md')
-rw-r--r-- | actionpack/CHANGELOG.md | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/actionpack/CHANGELOG.md b/actionpack/CHANGELOG.md index b8563d5076..271a57a7ad 100644 --- a/actionpack/CHANGELOG.md +++ b/actionpack/CHANGELOG.md @@ -1,3 +1,13 @@ +* Add a `response_format` option to `ActionDispatch::DebugExceptions` + to configure the format of the response when errors occur in + development mode. + + If `response_format` is `:default` the debug info will be rendered + in an HTML page. In the other hand, if the provided value is `:api` + the debug info will be rendered in the original response format. + + *Jorge Bejar* + * Change the `protect_from_forgery` prepend default to `false` Per this comment |