aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source
diff options
context:
space:
mode:
authorThomas Drake-Brockman <thom@sfedb.com>2013-01-05 10:45:10 +0800
committerThomas Drake-Brockman <thom@sfedb.com>2013-01-05 10:45:10 +0800
commitbd104bf5ca4c756f2c94b7a9f1107a3b8e300490 (patch)
tree424e6bbc03496e696cd66f3f87b5d4c8444d75b9 /guides/source
parentc91a7db4cfa0b3fe256e441432f051d7de0d1c0c (diff)
downloadrails-bd104bf5ca4c756f2c94b7a9f1107a3b8e300490.tar.gz
rails-bd104bf5ca4c756f2c94b7a9f1107a3b8e300490.tar.bz2
rails-bd104bf5ca4c756f2c94b7a9f1107a3b8e300490.zip
Document new configuration option action_controller.raise_on_unexpected_params.
Diffstat (limited to 'guides/source')
-rw-r--r--guides/source/configuring.md2
1 files changed, 2 insertions, 0 deletions
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.