diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-12-27 12:49:52 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-12-27 12:49:52 +0000 |
commit | 3e42f2685d9326c3483d6043895cbda31c3565e5 (patch) | |
tree | 745750b14940bd119bab55f32fc05f6173b703fa /config/routes.rb | |
parent | 0d630a3937af0cab828841b1274e74f7f50c9251 (diff) | |
download | redmine-3e42f2685d9326c3483d6043895cbda31c3565e5.tar.gz redmine-3e42f2685d9326c3483d6043895cbda31c3565e5.zip |
route: code layout clean up auth_sources route
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8408 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config/routes.rb')
-rw-r--r-- | config/routes.rb | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/config/routes.rb b/config/routes.rb index 260430cb1..dc82f7bbd 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -295,13 +295,20 @@ ActionController::Routing::Routes.draw do |map| # 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.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.connect 'ldap_auth_sources', :controller => 'ldap_auth_sources', :action => 'index', :conditions => {:method => :get} map.connect 'ldap_auth_sources/new', :controller => 'ldap_auth_sources', :action => 'new', :conditions => {:method => :get} |