diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-01-09 18:37:16 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-01-09 18:37:16 +0000 |
commit | 1b1c510ff99cfca216082926e5ce9e2e981b2506 (patch) | |
tree | ae25be505ae388435276a44a7755186c70ebe5e7 /config/routes.rb | |
parent | c22f60271f7c6726a28b2a319041c11b2a782b5e (diff) | |
download | redmine-1b1c510ff99cfca216082926e5ce9e2e981b2506.tar.gz redmine-1b1c510ff99cfca216082926e5ce9e2e981b2506.zip |
Ability to add non-member users as watchers (#5159).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8592 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config/routes.rb')
-rw-r--r-- | config/routes.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb index cf4e34321..42e936c0f 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -128,13 +128,17 @@ ActionController::Routing::Routes.draw do |map| :action => 'destroy', :conditions => {:method => :delete} map.connect 'watchers/new', :controller=> 'watchers', :action => 'new', - :conditions => {:method => [:get, :post]} + :conditions => {:method => :get} + map.connect 'watchers', :controller=> 'watchers', :action => 'create', + :conditions => {:method => :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/autocomplete_for_user', :controller=> 'watchers', :action => 'autocomplete_for_user', + :conditions => {:method => :get} # TODO: port to be part of the resources route(s) map.with_options :conditions => {:method => :get} do |project_views| |