Skip to content

Commit

Permalink
Added data for permit array into scalar value
Browse files Browse the repository at this point in the history
  • Loading branch information
rahul100885 committed Aug 5, 2013
1 parent 45357c5 commit 6a20cf4
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -201,6 +201,7 @@ def require(key)
# You may declare that the parameter should be an array of permitted scalars # You may declare that the parameter should be an array of permitted scalars
# by mapping it to an empty array: # by mapping it to an empty array:
# #
# params = ActionController::Parameters.new(tags: ['rails', 'parameters'])
# params.permit(tags: []) # params.permit(tags: [])
# #
# You can also use +permit+ on nested parameters, like: # You can also use +permit+ on nested parameters, like:
Expand Down

0 comments on commit 6a20cf4

Please sign in to comment.