From 8763271aef355499d23c0a7212a71483886a556f Mon Sep 17 00:00:00 2001 From: hachi8833 Date: Sat, 7 Oct 2023 08:58:25 +0900 Subject: [PATCH] Add raise_on_missing_callback_actions to configuring guide --- guides/source/configuring.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/guides/source/configuring.md b/guides/source/configuring.md index 9ad6db676e..eda6c3d10c 100644 --- a/guides/source/configuring.md +++ b/guides/source/configuring.md @@ -1743,6 +1743,13 @@ Rendered messages/_message.html.erb in 1.2 ms [cache hit] Rendered recordings/threads/_thread.html.erb in 1.5 ms [cache miss] ``` +#### `config.action_controller.raise_on_missing_callback_actions` + +Raises an `AbstractController::ActionNotFound` when the action specified in callback's `:only` or `:except` options is missing in the controller. + +The default value is `false`. +In newly generated 7.1+ app, the default values in config/environments.development.rb and test.rb will be configured as `true`. + #### `config.action_controller.raise_on_open_redirects` Raises an `ActionController::Redirecting::UnsafeRedirectError` when an unpermitted open redirect occurs.