]> source.dussan.org Git - redmine.git/commitdiff
route: code layout clean up auth_sources route
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 27 Dec 2011 12:49:52 +0000 (12:49 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 27 Dec 2011 12:49:52 +0000 (12:49 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8408 e93f8b46-1217-0410-a6f0-8f06a7374b81

config/routes.rb

index 260430cb178b421527ca8288497411a52a97d69e..dc82f7bbd4cc48b6ccd9f54aef599b4ea94e96d0 100644 (file)
@@ -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}