Permalink
Browse files

Merge pull request #11760 from rahul100885/master

Added data for permit array into scalar value

[ci skip]
  • Loading branch information...
2 parents 9545c6b + 6a20cf4 commit 1ad7e1206202deccb4a153f921a74b834bed1139 @rafaelfranca rafaelfranca committed Aug 5, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 actionpack/lib/action_controller/metal/strong_parameters.rb
@@ -201,6 +201,7 @@ def require(key)
# 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:

0 comments on commit 1ad7e12

Please sign in to comment.