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:
parent
5b71790843
commit
ba44548332
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue