You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Resolve documentational ambiguity over rescue_responses [ci-skip]
The issue was raised years ago at rails#27128
where everyone involved agreed that the documentation should be worked on,
only to leave it forgotten.
I believe it is still relevant as the ambiguity remains ever since.
Also, two of exceptions which have a seat in the current default
have been missing in the documentation so this commit aligns them.
Copy file name to clipboardExpand all lines: guides/source/configuring.md
+11-2Lines changed: 11 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1948,16 +1948,25 @@ information. It defaults to `true`.
1948
1948
1949
1949
#### `config.action_dispatch.rescue_responses`
1950
1950
1951
-
Configures what exceptions are assigned to an HTTP status. It accepts a hash and you can specify pairs of exception/status.By default, this is defined as:
1951
+
Configures what exceptions are assigned to an HTTP status. It accepts a hash and you can specify pairs of exception/status.
1952
1952
1953
1953
```ruby
1954
-
config.action_dispatch.rescue_responses = {
1954
+
# It's good to use #[]= or #merge! to respect the default values
0 commit comments