aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean Griffin <sean@seantheprogrammer.com>2016-11-29 12:21:14 -0700
committerGitHub <noreply@github.com>2016-11-29 12:21:14 -0700
commit7b583767498a14eb58f695952944b3710278f03c (patch)
treedbe7cb62deef0c786e244d54572c60b1d2022584
parent32f215c3014e580e512db5e8772d0deadf3d6497 (diff)
parentfe7394afe702eeae6e5d2c4c64e99e74f4afb382 (diff)
downloadrails-7b583767498a14eb58f695952944b3710278f03c.tar.gz
rails-7b583767498a14eb58f695952944b3710278f03c.tar.bz2
rails-7b583767498a14eb58f695952944b3710278f03c.zip
Merge pull request #27212 from dcarral/docs-action-on-unpermitted-parameters [ci skip]
Explicitly document 'false' as value for 'action_on_unpermitted_parameters'
-rw-r--r--actionpack/lib/action_controller/metal/strong_parameters.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_controller/metal/strong_parameters.rb b/actionpack/lib/action_controller/metal/strong_parameters.rb
index e14da22e01..acfeca1fcb 100644
--- a/actionpack/lib/action_controller/metal/strong_parameters.rb
+++ b/actionpack/lib/action_controller/metal/strong_parameters.rb
@@ -71,8 +71,8 @@ module ActionController
# * +permit_all_parameters+ - If it's +true+, all the parameters will be
# permitted by default. The default is +false+.
# * +action_on_unpermitted_parameters+ - Allow to control the behavior when parameters
- # that are not explicitly permitted are found. The values can be <tt>:log</tt> to
- # write a message on the logger or <tt>:raise</tt> to raise
+ # that are not explicitly permitted are found. The values can be +false+ to just filter them
+ # out, <tt>:log</tt> to additionally write a message on the logger, or <tt>:raise</tt> to raise
# ActionController::UnpermittedParameters exception. The default value is <tt>:log</tt>
# in test and development environments, +false+ otherwise.
#