From e5cc53c19c171a7e9a7c19d25df8034cbe1578a8 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Fri, 30 Dec 2011 23:53:29 +0000 Subject: [PATCH] route: move queries resources after projects resources This change passes queries test on Rails 3.0. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8443 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- config/routes.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/config/routes.rb b/config/routes.rb index 300e4ffd4..2df646ed1 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -51,7 +51,6 @@ ActionController::Routing::Routes.draw do |map| map.resources :issue_moves, :only => [:new, :create], :path_prefix => '/issues', :as => 'move' - map.resources :queries, :except => [:show] # Misc issue routes. TODO: move into resources map.auto_complete_issues '/issues/auto_complete', :controller => 'auto_completes', @@ -201,9 +200,9 @@ ActionController::Routing::Routes.draw do |map| :export => :get, :date_index => :get } - end + map.resources :queries, :except => [:show] map.resources :issues, :collection => {:bulk_edit => :get, :bulk_update => :post} do |issues| issues.resources :time_entries, :controller => 'timelog',