route: code layout clean up activities route

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8416 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-12-29 08:04:43 +00:00
parent c4c4931c6b
commit f2b8672f08
1 changed files with 2 additions and 1 deletions

View File

@ -199,7 +199,8 @@ ActionController::Routing::Routes.draw do |map|
end end
end end
map.with_options :controller => 'activities', :action => 'index', :conditions => {:method => :get} do |activity| map.with_options :controller => 'activities', :action => 'index',
:conditions => {:method => :get} do |activity|
activity.connect 'projects/:id/activity' activity.connect 'projects/:id/activity'
activity.connect 'projects/:id/activity.:format' activity.connect 'projects/:id/activity.:format'
activity.connect 'activity', :id => nil activity.connect 'activity', :id => nil