diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-01-04 08:51:00 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-01-04 08:51:00 +0000 |
commit | 6e17b5dccf90972d7fb44da18d0580ed99d27c4f (patch) | |
tree | 41648dc7900982e1cb3135882f26da57574ea3e8 /config/routes.rb | |
parent | 5636228f798a08204d2488219f331c489e470735 (diff) | |
download | redmine-6e17b5dccf90972d7fb44da18d0580ed99d27c4f.tar.gz redmine-6e17b5dccf90972d7fb44da18d0580ed99d27c4f.zip |
route: simplify repositories route
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8497 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config/routes.rb')
-rw-r--r-- | config/routes.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/config/routes.rb b/config/routes.rb index c6c46c732..ef1d0638c 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -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} |