提交 fca617af 编写于 作者: A Andre Arko 提交者: José Valim

Allow member actions (get, etc) to accept strings, with test

上级 a0ca3d10
......@@ -731,6 +731,7 @@ def match(*args)
end
elsif resource_method_scope?
path = path_for_custom_action
options[:action] ||= action
options[:as] = name_for_action(options[:as]) if options[:as]
args.push(options)
......
......@@ -128,7 +128,7 @@ def self.matches?(request)
end
member do
get :some_path_with_name
get 'some_path_with_name'
put :accessible_projects
post :resend, :generate_new_password
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册