diff options
author | Eric Davis <edavis@littlestreamsoftware.com> | 2010-10-05 16:07:17 +0000 |
---|---|---|
committer | Eric Davis <edavis@littlestreamsoftware.com> | 2010-10-05 16:07:17 +0000 |
commit | e13790c62c800a5b6d9528b5e2db2aad2c5e3710 (patch) | |
tree | 7be0ed076c62d3267a0f7839e07a6fcec011e533 /config/routes.rb | |
parent | a034172b24cde31bac0f18b842db8c76cfb80bb1 (diff) | |
download | redmine-e13790c62c800a5b6d9528b5e2db2aad2c5e3710.tar.gz redmine-e13790c62c800a5b6d9528b5e2db2aad2c5e3710.zip |
Refactor: extract TimelogController#report to a new controller class
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4232 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config/routes.rb')
-rw-r--r-- | config/routes.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/routes.rb b/config/routes.rb index 7902fee32..32ab0ca37 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -30,8 +30,8 @@ ActionController::Routing::Routes.draw do |map| time_details.connect 'projects/:project_id/issues/:issue_id/time_entries' time_details.connect 'projects/:project_id/issues/:issue_id/time_entries.:format' end - timelog.connect 'projects/:project_id/time_entries/report', :action => 'report' - timelog.with_options :action => 'report',:conditions => {:method => :get} do |time_report| + timelog.connect 'projects/:project_id/time_entries/report', :controller => 'time_entry_reports', :action => 'report' + timelog.with_options :controller => 'time_entry_reports', :action => 'report',:conditions => {:method => :get} do |time_report| time_report.connect 'time_entries/report' time_report.connect 'time_entries/report.:format' time_report.connect 'projects/:project_id/time_entries/report.:format' |