route: simplify repositories route

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8497 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2012-01-04 08:51:00 +00:00
parent 5636228f79
commit 6e17b5dccf
1 changed files with 1 additions and 3 deletions

View File

@ -227,8 +227,6 @@ ActionController::Routing::Routes.draw do |map|
repositories.with_options :conditions => {:method => :get} do |repository_views|
repository_views.connect 'projects/:id/repository',
:action => 'show'
repository_views.connect 'projects/:id/repository/edit',
:action => 'edit'
repository_views.connect 'projects/:id/repository/statistics',
:action => 'stats'
@ -276,7 +274,7 @@ ActionController::Routing::Routes.draw do |map|
:conditions => {:method => [:get, :post]}
repositories.connect 'projects/:id/repository/edit',
:action => 'edit',
:conditions => {:method => :post}
:conditions => {:method => [:get, :post]}
repositories.connect 'projects/:id/repository/destroy',
:action => 'destroy',
:conditions => {:method => :post}