Permalink
Browse files

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

  • Loading branch information...
indirect authored and josevalim committed Aug 17, 2010
1 parent a0ca3d1 commit fca617af143dd8598502bdbaa617e7fe124d595e
Showing with 2 additions and 1 deletion.
  1. +1 −0 actionpack/lib/action_dispatch/routing/mapper.rb
  2. +1 −1 actionpack/test/dispatch/routing_test.rb
@@ -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

0 comments on commit fca617a

Please sign in to comment.