mirror of
https://github.com/redmine/redmine.git
synced 2024-08-26 17:58:38 +02:00
route: code layout clean up users route
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8387 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
4f9f68046c
commit
a76045d792
@ -119,9 +119,15 @@ ActionController::Routing::Routes.draw do |map|
|
||||
|
||||
map.resources :users
|
||||
map.with_options :controller => 'users' do |users|
|
||||
users.user_memberships 'users/:id/memberships', :action => 'edit_membership', :conditions => {:method => :post}
|
||||
users.user_membership 'users/:id/memberships/:membership_id', :action => 'edit_membership', :conditions => {:method => :put}
|
||||
users.connect 'users/:id/memberships/:membership_id', :action => 'destroy_membership', :conditions => {:method => :delete}
|
||||
users.user_memberships 'users/:id/memberships',
|
||||
:action => 'edit_membership',
|
||||
:conditions => {:method => :post}
|
||||
users.user_membership 'users/:id/memberships/:membership_id',
|
||||
:action => 'edit_membership',
|
||||
:conditions => {:method => :put}
|
||||
users.connect 'users/:id/memberships/:membership_id',
|
||||
:action => 'destroy_membership',
|
||||
:conditions => {:method => :delete}
|
||||
end
|
||||
|
||||
# For nice "roadmap" in the url for the index action
|
||||
|
Loading…
Reference in New Issue
Block a user