From ba445483323132580d98dfd2084aaaaf782a4fa8 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Fri, 30 Dec 2011 02:17:47 +0000 Subject: [PATCH] route: code layout clean up issues resources git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8431 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- config/routes.rb | 10 +++++++--- 1 file 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}