Skip to content

Commit 0cce959

Browse files
committed
Fix incorrect error class for raise_on_open_redirects in guide
The error was changed from `ArgumentError` to `UnsafeRedirectError` in: rails@c3758a7
1 parent 5b8421f commit 0cce959

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guides/source/configuring.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1355,7 +1355,7 @@ Rendered recordings/threads/_thread.html.erb in 1.5 ms [cache miss]
13551355
13561356
#### `config.action_controller.raise_on_open_redirects`
13571357
1358-
Raises an `ArgumentError` when an unpermitted open redirect occurs.
1358+
Raises an `ActionController::Redirecting::UnsafeRedirectError` when an unpermitted open redirect occurs.
13591359
13601360
The default value depends on the `config.load_defaults` target version:
13611361

0 commit comments

Comments
 (0)