diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-12-11 10:26:12 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-12-11 10:26:12 +0000 |
commit | 0471de41ff4828345ca0afa393f4b8f3bf0098d2 (patch) | |
tree | ba8c101be1d1d5adda486d06f32836d5ed59e041 /config/routes.rb | |
parent | 1ad16c2238be1b1e0cc29435203b8fd8c233a85c (diff) | |
download | redmine-0471de41ff4828345ca0afa393f4b8f3bf0098d2.tar.gz redmine-0471de41ff4828345ca0afa393f4b8f3bf0098d2.zip |
Resourcified enumerations.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8189 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config/routes.rb')
-rw-r--r-- | config/routes.rb | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/config/routes.rb b/config/routes.rb index 488b366d8..8b40a4fc7 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -212,6 +212,7 @@ ActionController::Routing::Routes.draw do |map| map.resources :issue_statuses, :except => :show, :collection => {:update_issue_done_ratio => :post} map.resources :custom_fields, :except => :show map.resources :roles, :except => :show, :collection => {:permissions => [:get, :post]} + map.resources :enumerations, :except => :show map.connect 'search', :controller => 'search', :action => 'index', :conditions => {:method => :get} @@ -244,12 +245,6 @@ ActionController::Routing::Routes.draw do |map| 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]} - map.connect 'enumerations', :controller => 'enumerations', :action => 'index', :conditions => {:method => :get} - map.connect 'enumerations/new', :controller => 'enumerations', :action => 'new', :conditions => {:method => :get} - map.connect 'enumerations/create', :controller => 'enumerations', :action => 'create', :conditions => {:method => :post} - map.connect 'enumerations/edit/:id', :controller => 'enumerations', :action => 'edit', :id => /\d+/, :conditions => {:method => :get} - map.connect 'enumerations/update/:id', :controller => 'enumerations', :action => 'update', :id => /\d+/, :conditions => {:method => :post} - map.connect 'enumerations/destroy/:id', :controller => 'enumerations', :action => 'destroy', :id => /\d+/, :conditions => {:method => :post} map.connect 'settings', :controller => 'settings', :action => 'index', :conditions => {:method => :get} map.connect 'settings/edit', :controller => 'settings', :action => 'edit', :conditions => {:method => [:get, :post]} map.connect 'settings/plugin/:id', :controller => 'settings', :action => 'plugin', :conditions => {:method => [:get, :post]} |