提交 1ad7e120 编写于 作者: R Rafael Mendonça França

Merge pull request #11760 from rahul100885/master

Added data for permit array into scalar value

[ci skip]
...@@ -201,6 +201,7 @@ def require(key) ...@@ -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:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册