Skip to content

Commit 36cc7c5

Browse files
committed
Remove unsupported values for config.action_dispatch.show_exceptions [ci skip]
Support for `true` and `false` was removed in ec2c266.
1 parent a18aa26 commit 36cc7c5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

guides/source/configuring.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2028,15 +2028,15 @@ defaults to `true`.
20282028

20292029
The `config.action_dispatch.show_exceptions` configuration controls how Action Pack (specifically the [`ActionDispatch::ShowExceptions`](/configuring.html#actiondispatch-showexceptions) middleware) handles exceptions raised while responding to requests.
20302030

2031-
Setting the value to `:all` or `true` configures Action Pack to rescue from exceptions and render corresponding error pages. For example, Action Pack would rescue from an `ActiveRecord::RecordNotFound` exception and render the contents of `public/404.html` with a `404 Not found` status code.
2031+
Setting the value to `:all` configures Action Pack to rescue from exceptions and render corresponding error pages. For example, Action Pack would rescue from an `ActiveRecord::RecordNotFound` exception and render the contents of `public/404.html` with a `404 Not found` status code.
20322032

20332033
Setting the value to `:rescueable` configures Action Pack rescue from exceptions defined in [`config.action_dispatch.rescue_responses`](/configuring.html#config-action-dispatch-rescue-responses), and raise all others. For example, Action Pack would rescue from `ActiveRecord::RecordNotFound`, but would raise a `NoMethodError`.
20342034

2035-
Setting the value to `:none` or `false` configures Action Pack raise all exceptions.
2035+
Setting the value to `:none` configures Action Pack raise all exceptions.
20362036

2037-
* `:all`, `true` - render error pages for all exceptions
2037+
* `:all` - render error pages for all exceptions
20382038
* `:rescuable` - render error pages for exceptions declared by [`config.action_dispatch.rescue_responses`](/configuring.html#config-action-dispatch-rescue-responses)
2039-
* `:none`, `false` - raise all exceptions
2039+
* `:none` - raise all exceptions
20402040

20412041
| Starting with version | The default value is |
20422042
| --------------------- | --------------------- |

0 commit comments

Comments
 (0)