]> source.dussan.org Git - redmine.git/commitdiff
Routes cleanup.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 2 Dec 2011 19:35:54 +0000 (19:35 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 2 Dec 2011 19:35:54 +0000 (19:35 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8028 e93f8b46-1217-0410-a6f0-8f06a7374b81

config/routes.rb

index 55b6ffe84aa7b1992afe8842b2e3808cc95a79a3..4832965c9a06aff37fc035d102382fcd17d381be 100644 (file)
@@ -14,14 +14,10 @@ ActionController::Routing::Routes.draw do |map|
   map.connect 'roles/workflow/:id/:role_id/:tracker_id', :controller => 'roles', :action => 'workflow'
   map.connect 'help/:ctrl/:page', :controller => 'help'
 
-  map.bulk_edit_time_entry 'time_entries/bulk_edit',
-                   :controller => 'timelog', :action => 'bulk_edit', :conditions => { :method => :get }
-  map.bulk_update_time_entry 'time_entries/bulk_edit',
-                   :controller => 'timelog', :action => 'bulk_update', :conditions => { :method => :post }
   map.time_entries_context_menu '/time_entries/context_menu',
                    :controller => 'context_menus', :action => 'time_entries'
 
-  map.resources :time_entries, :controller => 'timelog', :collection => {:report => :get}
+  map.resources :time_entries, :controller => 'timelog', :collection => {:report => :get, :bulk_edit => :get, :bulk_update => :post}
 
   map.connect 'projects/:id/wiki', :controller => 'wikis', :action => 'edit', :conditions => {:method => :post}
   map.connect 'projects/:id/wiki/destroy', :controller => 'wikis', :action => 'destroy', :conditions => {:method => :get}