Skip to content
Browse files

Added data for permit array into scalar value

  • Loading branch information...
1 parent 45357c5 commit 6a20cf4f0532b3e0e397aead76eff28f87135e2d @rahul100885 rahul100885 committed Aug 5, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 actionpack/lib/action_controller/metal/strong_parameters.rb
View
1 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 6a20cf4

Please sign in to comment.
Something went wrong with that request. Please try again.