diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-12-27 13:49:12 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-12-27 13:49:12 +0000 |
commit | aac01fbf22b59006d47fb66a0757fed8e6f9eae9 (patch) | |
tree | 59280a2431d6abf51b5e97ae50144e73f47f39e5 /config/routes.rb | |
parent | d6378fe3955f6811987fff28e0c7a3c3b34d50b2 (diff) | |
download | redmine-aac01fbf22b59006d47fb66a0757fed8e6f9eae9.tar.gz redmine-aac01fbf22b59006d47fb66a0757fed8e6f9eae9.zip |
route: code layout clean up ldap_auth_sources route
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8411 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config/routes.rb')
-rw-r--r-- | config/routes.rb | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/config/routes.rb b/config/routes.rb index dc82f7bbd..b3f74d1c9 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -310,13 +310,21 @@ ActionController::Routing::Routes.draw do |map| 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} - map.connect 'ldap_auth_sources/create', :controller => 'ldap_auth_sources', :action => 'create', :conditions => {:method => :post} - map.connect 'ldap_auth_sources/destroy/:id', :controller => 'ldap_auth_sources', :action => 'destroy', :id => /\d+/, :conditions => {:method => :post} - map.connect 'ldap_auth_sources/test_connection/:id', :controller => 'ldap_auth_sources', :action => 'test_connection', :conditions => {:method => :get} - map.connect 'ldap_auth_sources/edit/:id', :controller => 'ldap_auth_sources', :action => 'edit', :id => /\d+/, :conditions => {:method => :get} - map.connect 'ldap_auth_sources/update/:id', :controller => 'ldap_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} + map.connect 'ldap_auth_sources/create', :controller => 'ldap_auth_sources', + :action => 'create', :conditions => {:method => :post} + map.connect 'ldap_auth_sources/destroy/:id', :controller => 'ldap_auth_sources', + :action => 'destroy', :id => /\d+/, :conditions => {:method => :post} + map.connect 'ldap_auth_sources/test_connection/:id', :controller => 'ldap_auth_sources', + :action => 'test_connection', :conditions => {:method => :get} + map.connect 'ldap_auth_sources/edit/:id', :controller => 'ldap_auth_sources', + :action => 'edit', :id => /\d+/, :conditions => {:method => :get} + map.connect 'ldap_auth_sources/update/:id', :controller => 'ldap_auth_sources', + :action => 'update', :id => /\d+/, :conditions => {:method => :post} + map.connect 'workflows', :controller => 'workflows', :action => 'index', :conditions => {:method => :get} map.connect 'workflows/edit', :controller => 'workflows', :action => 'edit', :conditions => {:method => [:get, :post]} map.connect 'workflows/copy', :controller => 'workflows', :action => 'copy', :conditions => {:method => [:get, :post]} |