route: move attachments resources after matching

On Rails3.0, 'match' needs before resources.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8439 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-12-30 12:52:08 +00:00
parent 49ceb577ec
commit 5127f3dcbc
1 changed files with 1 additions and 1 deletions

View File

@ -261,7 +261,6 @@ ActionController::Routing::Routes.draw do |map|
:conditions => {:method => :post}
end
map.resources :attachments, :only => [:show, :destroy]
# additional routes for having the file name at the end of url
map.connect 'attachments/:id/:filename', :controller => 'attachments',
:action => 'show', :id => /\d+/, :filename => /.*/,
@ -272,6 +271,7 @@ ActionController::Routing::Routes.draw do |map|
map.connect 'attachments/download/:id', :controller => 'attachments',
:action => 'download', :id => /\d+/,
:conditions => {:method => :get}
map.resources :attachments, :only => [:show, :destroy]
map.resources :groups, :member => {:autocomplete_for_user => :get}
map.group_users 'groups/:id/users', :controller => 'groups',