aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRahul P. Chaudhari <rahul100885@gmail.com>2013-08-05 19:10:54 +0530
committerRahul P. Chaudhari <rahul100885@gmail.com>2013-08-05 19:10:54 +0530
commit6a20cf4f0532b3e0e397aead76eff28f87135e2d (patch)
tree40c4009b93c39c3dcc85e988faefe3e4ea796897
parent45357c5b1476def0d89c3a8213bc8a0cea61554c (diff)
downloadrails-6a20cf4f0532b3e0e397aead76eff28f87135e2d.tar.gz
rails-6a20cf4f0532b3e0e397aead76eff28f87135e2d.tar.bz2
rails-6a20cf4f0532b3e0e397aead76eff28f87135e2d.zip
Added data for permit array into scalar value
-rw-r--r--actionpack/lib/action_controller/metal/strong_parameters.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/metal/strong_parameters.rb b/actionpack/lib/action_controller/metal/strong_parameters.rb
index 44703221f3..b279ef81a9 100644
--- a/actionpack/lib/action_controller/metal/strong_parameters.rb
+++ b/actionpack/lib/action_controller/metal/strong_parameters.rb
@@ -201,6 +201,7 @@ module ActionController
# You may declare that the parameter should be an array of permitted scalars
# by mapping it to an empty array:
#
+ # params = ActionController::Parameters.new(tags: ['rails', 'parameters'])
# params.permit(tags: [])
#
# You can also use +permit+ on nested parameters, like: