Commits

Toshi MARUYAMA committed 0a207c3

route: simplify project settings and issues copy route

  • Participants
  • Parent commits 0285387

Comments (0)

Files changed (1)

File config/routes.rb

   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',