diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-12-27 01:57:54 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-12-27 01:57:54 +0000 |
commit | 79da00dc403f8b750c8e28af80f58b4134eebb2b (patch) | |
tree | 53de1ccf65aa5dc532d0d25e8f8efa1d4135c576 /config/routes.rb | |
parent | e015a4a5276e5a46a90a9c110c7eb073f358104e (diff) | |
download | redmine-79da00dc403f8b750c8e28af80f58b4134eebb2b.tar.gz redmine-79da00dc403f8b750c8e28af80f58b4134eebb2b.zip |
route: code layout clean up watchers route
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8395 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config/routes.rb')
-rw-r--r-- | config/routes.rb | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/config/routes.rb b/config/routes.rb index 585c9750a..c67156fed 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -141,10 +141,14 @@ ActionController::Routing::Routes.draw do |map| map.connect 'news/:id/comments/:comment_id', :controller => 'comments', :action => 'destroy', :conditions => {:method => :delete} - map.connect 'watchers/new', :controller=> 'watchers', :action => 'new', :conditions => {:method => [:get, :post]} - map.connect 'watchers/destroy', :controller=> 'watchers', :action => 'destroy', :conditions => {:method => :post} - map.connect 'watchers/watch', :controller=> 'watchers', :action => 'watch', :conditions => {:method => :post} - map.connect 'watchers/unwatch', :controller=> 'watchers', :action => 'unwatch', :conditions => {:method => :post} + map.connect 'watchers/new', :controller=> 'watchers', :action => 'new', + :conditions => {:method => [:get, :post]} + map.connect 'watchers/destroy', :controller=> 'watchers', :action => 'destroy', + :conditions => {:method => :post} + map.connect 'watchers/watch', :controller=> 'watchers', :action => 'watch', + :conditions => {:method => :post} + map.connect 'watchers/unwatch', :controller=> 'watchers', :action => 'unwatch', + :conditions => {:method => :post} map.resources :projects, :member => { :copy => [:get, :post], |