diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-12-26 11:48:47 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-12-26 11:48:47 +0000 |
commit | f8cb06bff2e50cbadd83e0ca4e7b4b892ccc0edf (patch) | |
tree | b100667d9b42622818fdfe0203575b5d7b0cd531 /config | |
parent | 0d2b35dbb41714b4bad89aae9fd7c978d04dc45c (diff) | |
download | redmine-f8cb06bff2e50cbadd83e0ca4e7b4b892ccc0edf.tar.gz redmine-f8cb06bff2e50cbadd83e0ca4e7b4b892ccc0edf.zip |
route: code layout clean up groups route
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8381 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.rb | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/config/routes.rb b/config/routes.rb index 873369f93..a7dbea655 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -237,10 +237,18 @@ ActionController::Routing::Routes.draw do |map| :conditions => {:method => :get} map.resources :groups, :member => {:autocomplete_for_user => :get} - map.group_users 'groups/:id/users', :controller => 'groups', :action => 'add_users', :id => /\d+/, :conditions => {:method => :post} - map.group_user 'groups/:id/users/:user_id', :controller => 'groups', :action => 'remove_user', :id => /\d+/, :conditions => {:method => :delete} - map.connect 'groups/destroy_membership/:id', :controller => 'groups', :action => 'destroy_membership', :id => /\d+/, :conditions => {:method => :post} - map.connect 'groups/edit_membership/:id', :controller => 'groups', :action => 'edit_membership', :id => /\d+/, :conditions => {:method => :post} + map.group_users 'groups/:id/users', :controller => 'groups', + :action => 'add_users', :id => /\d+/, + :conditions => {:method => :post} + map.group_user 'groups/:id/users/:user_id', :controller => 'groups', + :action => 'remove_user', :id => /\d+/, + :conditions => {:method => :delete} + map.connect 'groups/destroy_membership/:id', :controller => 'groups', + :action => 'destroy_membership', :id => /\d+/, + :conditions => {:method => :post} + map.connect 'groups/edit_membership/:id', :controller => 'groups', + :action => 'edit_membership', :id => /\d+/, + :conditions => {:method => :post} map.resources :trackers, :except => :show map.resources :issue_statuses, :except => :show, :collection => {:update_issue_done_ratio => :post} |