From bd104bf5ca4c756f2c94b7a9f1107a3b8e300490 Mon Sep 17 00:00:00 2001 From: Thomas Drake-Brockman Date: Sat, 5 Jan 2013 10:45:10 +0800 Subject: Document new configuration option action_controller.raise_on_unexpected_params. --- guides/source/configuring.md | 2 ++ 1 file changed, 2 insertions(+) (limited to 'guides/source') diff --git a/guides/source/configuring.md b/guides/source/configuring.md index 6e93932d49..cb14c0534b 100644 --- a/guides/source/configuring.md +++ b/guides/source/configuring.md @@ -304,6 +304,8 @@ The schema dumper adds one additional configuration option: * `config.action_controller.permit_all_parameters` sets all the parameters for mass assignment to be permitted by default. The default value is `false`. +* `config.action_controller.raise_on_unexpected_params` enables raising an exception if paramets that are not explicitly permitted are found. The default value is `true` in development and test environments, `false` otherwise. + ### Configuring Action Dispatch * `config.action_dispatch.session_store` sets the name of the store for session data. The default is `:cookie_store`; other valid options include `:active_record_store`, `:mem_cache_store` or the name of your own custom class. -- cgit v1.2.3