diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-12-29 08:05:17 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-12-29 08:05:17 +0000 |
commit | 6c3987bbe6b638cfde4702ffc498974c25f0d498 (patch) | |
tree | 5d635187ee06830c4e93200acaf185dde8313904 /config | |
parent | f2b8672f08542198c4e17510bda7b698d3773202 (diff) | |
download | redmine-6c3987bbe6b638cfde4702ffc498974c25f0d498.tar.gz redmine-6c3987bbe6b638cfde4702ffc498974c25f0d498.zip |
route: simplify project settings and issues copy route
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8417 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/config/routes.rb b/config/routes.rb index 06047e2e2..e6d89953b 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -192,11 +192,11 @@ ActionController::Routing::Routes.draw do |map| end # TODO: port to be part of the resources route(s) - map.with_options :controller => 'projects' do |project_mapper| - project_mapper.with_options :conditions => {:method => :get} do |project_views| - project_views.connect 'projects/:id/settings/:tab', :controller => 'projects', :action => 'settings' - project_views.connect 'projects/:project_id/issues/:copy_from/copy', :controller => 'issues', :action => 'new' - end + map.with_options :conditions => {:method => :get} do |project_views| + project_views.connect 'projects/:id/settings/:tab', + :controller => 'projects', :action => 'settings' + project_views.connect 'projects/:project_id/issues/:copy_from/copy', + :controller => 'issues', :action => 'new' end map.with_options :controller => 'activities', :action => 'index', |