diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-12-30 02:17:47 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-12-30 02:17:47 +0000 |
commit | ba445483323132580d98dfd2084aaaaf782a4fa8 (patch) | |
tree | e5c812550f6ebfed5e8767c90c74226f728d2697 /config/routes.rb | |
parent | 5b717908433aac1f7108bb652e23cc6098e4badc (diff) | |
download | redmine-ba445483323132580d98dfd2084aaaaf782a4fa8.tar.gz redmine-ba445483323132580d98dfd2084aaaaf782a4fa8.zip |
route: code layout clean up issues resources
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8431 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config/routes.rb')
-rw-r--r-- | config/routes.rb | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/config/routes.rb b/config/routes.rb index 43965a064..99a826bef 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -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} |