mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Allow member actions (get, etc) to accept strings, with test
This commit is contained in:
parent
a0ca3d1067
commit
fca617af14
2 changed files with 2 additions and 1 deletions
|
@ -731,6 +731,7 @@ module ActionDispatch
|
|||
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 @@ class TestRoutingMapper < ActionDispatch::IntegrationTest
|
|||
end
|
||||
|
||||
member do
|
||||
get :some_path_with_name
|
||||
get 'some_path_with_name'
|
||||
put :accessible_projects
|
||||
post :resend, :generate_new_password
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue