route: code layout clean up issues resources

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8431 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-12-30 02:17:47 +00:00
parent 5b71790843
commit ba44548332
1 changed files with 7 additions and 3 deletions

View File

@ -109,9 +109,13 @@ ActionController::Routing::Routes.draw do |map|
map.connect 'my/order_blocks', :controller => 'my', :action => 'order_blocks',
:conditions => {:method => :post}
map.resources :issues, :collection => {:bulk_edit => :get, :bulk_update => :post} do |issues|
issues.resources :time_entries, :controller => 'timelog', :collection => {:report => :get}
issues.resources :relations, :shallow => true, :controller => 'issue_relations', :only => [:index, :show, :create, :destroy]
map.resources :issues,
:collection => {:bulk_edit => :get, :bulk_update => :post} do |issues|
issues.resources :time_entries, :controller => 'timelog',
:collection => {:report => :get}
issues.resources :relations, :shallow => true,
:controller => 'issue_relations',
:only => [:index, :show, :create, :destroy]
end
# Bulk deletion
map.connect '/issues', :controller => 'issues', :action => 'destroy', :conditions => {:method => :delete}