summaryrefslogtreecommitdiffstats
path: root/config/routes.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-03-11 11:53:28 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-03-11 11:53:28 +0000
commit71e636ff71791bafdc2638d4916c68f5235e957a (patch)
tree23f60b5f238397a5735ab3569b9eff3a0d185304 /config/routes.rb
parentbd47af098fefef968647f7634105b22eb115d4b2 (diff)
downloadredmine-71e636ff71791bafdc2638d4916c68f5235e957a.tar.gz
redmine-71e636ff71791bafdc2638d4916c68f5235e957a.zip
Resourcified auth_sources.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9233 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb17
1 files changed, 1 insertions, 16 deletions
diff --git a/config/routes.rb b/config/routes.rb
index abf91729a..3e98e9043 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -353,22 +353,7 @@ ActionController::Routing::Routes.draw do |map|
map.connect 'admin/default_configuration', :controller => 'admin',
:action => 'default_configuration', :conditions => {:method => :post}
- # Used by AuthSourcesControllerTest
- # TODO : refactor *AuthSourcesController to remove these routes
- map.connect 'auth_sources', :controller => 'auth_sources',
- :action => 'index', :conditions => {:method => :get}
- map.connect 'auth_sources/new', :controller => 'auth_sources',
- :action => 'new', :conditions => {:method => :get}
- map.connect 'auth_sources/create', :controller => 'auth_sources',
- :action => 'create', :conditions => {:method => :post}
- map.connect 'auth_sources/destroy/:id', :controller => 'auth_sources',
- :action => 'destroy', :id => /\d+/, :conditions => {:method => :post}
- map.connect 'auth_sources/test_connection/:id', :controller => 'auth_sources',
- :action => 'test_connection', :conditions => {:method => :get}
- map.connect 'auth_sources/edit/:id', :controller => 'auth_sources',
- :action => 'edit', :id => /\d+/, :conditions => {:method => :get}
- map.connect 'auth_sources/update/:id', :controller => 'auth_sources',
- :action => 'update', :id => /\d+/, :conditions => {:method => :post}
+ map.resources :auth_sources, :member => {:test_connection => :get}
map.connect 'workflows', :controller => 'workflows',
:action => 'index', :conditions => {:method => :get}