diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-12-02 19:33:05 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-12-02 19:33:05 +0000 |
commit | 69a2431dd0513de112b77e5a4c9a3707fb7ea283 (patch) | |
tree | 4f26db5d2aa1a79077c32c0db9ffbdc8a701277b /config | |
parent | caf898d7d13fa9df8acfaab4a7163f123cb59bf9 (diff) | |
download | redmine-69a2431dd0513de112b77e5a4c9a3707fb7ea283.tar.gz redmine-69a2431dd0513de112b77e5a4c9a3707fb7ea283.zip |
Dropped TimeEntryReportsController.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8027 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.rb | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/config/routes.rb b/config/routes.rb index 3364682b7..55b6ffe84 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -14,15 +14,6 @@ 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.with_options :controller => 'time_entry_reports', :action => 'report',:conditions => {:method => :get} do |time_report| - time_report.connect 'projects/:project_id/issues/:issue_id/time_entries/report' - time_report.connect 'projects/:project_id/issues/:issue_id/time_entries/report.:format' - time_report.connect 'projects/:project_id/time_entries/report' - time_report.connect 'projects/:project_id/time_entries/report.:format' - time_report.connect 'time_entries/report' - time_report.connect 'time_entries/report.:format' - end - 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', @@ -30,7 +21,7 @@ ActionController::Routing::Routes.draw do |map| map.time_entries_context_menu '/time_entries/context_menu', :controller => 'context_menus', :action => 'time_entries' - map.resources :time_entries, :controller => 'timelog' + map.resources :time_entries, :controller => 'timelog', :collection => {:report => :get} 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} @@ -79,7 +70,7 @@ ActionController::Routing::Routes.draw do |map| end map.resources :issues do |issues| - issues.resources :time_entries, :controller => 'timelog' + issues.resources :time_entries, :controller => 'timelog', :collection => {:report => :get} issues.resources :relations, :shallow => true, :controller => 'issue_relations', :only => [:index, :show, :create, :destroy] end @@ -118,12 +109,12 @@ ActionController::Routing::Routes.draw do |map| } do |project| project.resource :project_enumerations, :as => 'enumerations', :only => [:update, :destroy] project.resources :issues, :only => [:index, :new, :create] do |issues| - issues.resources :time_entries, :controller => 'timelog' + issues.resources :time_entries, :controller => 'timelog', :collection => {:report => :get} end project.resources :files, :only => [:index, :new, :create] project.resources :versions, :shallow => true, :collection => {:close_completed => :put}, :member => {:status_by => :post} project.resources :news, :shallow => true - project.resources :time_entries, :controller => 'timelog', :path_prefix => 'projects/:project_id' + project.resources :time_entries, :controller => 'timelog', :path_prefix => 'projects/:project_id', :collection => {:report => :get} project.resources :queries, :only => [:new, :create] project.resources :issue_categories, :shallow => true project.resources :documents, :shallow => true, :member => {:add_attachment => :post} |