Commits

Toshi MARUYAMA  committed 6597a1f

route: move time entries matchings and resources after /issues matchings

Time log tests pass except /time_entries delete action on Rails 3.0.

  • Participants
  • Parent commits e269e2f

Comments (0)

Files changed (1)

File config/routes.rb

   map.connect 'account/activate', :controller => 'account', :action => 'activate',
               :conditions => {:method => :get}
 
-  map.connect '/time_entries/destroy',
-              :controller => 'timelog', :action => 'destroy',
-              :conditions => { :method => :delete }
-  map.time_entries_context_menu '/time_entries/context_menu',
-                   :controller => 'context_menus', :action => 'time_entries'
-
-  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',
   map.connect '/issues', :controller => 'issues', :action => 'destroy',
               :conditions => {:method => :delete}
 
+  map.connect '/time_entries/destroy',
+              :controller => 'timelog', :action => 'destroy',
+              :conditions => { :method => :delete }
+  map.time_entries_context_menu '/time_entries/context_menu',
+                   :controller => 'context_menus', :action => 'time_entries'
+
+  map.resources :time_entries, :controller => 'timelog',
+                :collection => {:report => :get, :bulk_edit => :get, :bulk_update => :post}
+
   map.with_options :controller => 'activities', :action => 'index',
                    :conditions => {:method => :get} do |activity|
     activity.connect 'projects/:id/activity'