提交 eefd4c0d 编写于 作者: K Kasper Timm Hansen

Merge pull request #20378 from vngrs/fix_doc_of_match_method

match method doc fix [ci skip]
......@@ -1450,9 +1450,12 @@ def shallow?
parent_resource.instance_of?(Resource) && @scope[:shallow]
end
# match 'path' => 'controller#action'
# match 'path', to: 'controller#action'
# match 'path', 'otherpath', on: :member, via: :get
# Matches a url pattern to one or more routes.
# For more information, see match[rdoc-ref:Base#match].
#
# match 'path' => 'controller#action', via: patch
# match 'path', to: 'controller#action', via: :post
# match 'path', 'otherpath', on: :member, via: :get
def match(path, *rest)
if rest.empty? && Hash === path
options = path
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册