summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorEric Davis <edavis@littlestreamsoftware.com>2010-10-08 15:39:39 +0000
committerEric Davis <edavis@littlestreamsoftware.com>2010-10-08 15:39:39 +0000
commit4acd990ee2950a575a35b32bdfd8a75f04e958b0 (patch)
tree2bf8be13397290bfae82a5e3ea7b8126b5615875 /config
parent84ebd786d6eb20693f8ba93a04be93e279be0289 (diff)
downloadredmine-4acd990ee2950a575a35b32bdfd8a75f04e958b0.tar.gz
redmine-4acd990ee2950a575a35b32bdfd8a75f04e958b0.zip
Refactor: extract TimelogController#create from TimelogController#edit
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4244 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 34ee875ea..702bcf89e 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -40,7 +40,8 @@ ActionController::Routing::Routes.draw do |map|
timelog.with_options :action => 'new', :conditions => {:method => :get} do |time_edit|
time_edit.connect 'issues/:issue_id/time_entries/new'
end
-
+
+ timelog.connect 'projects/:project_id/timelog/edit', :action => 'create', :conditions => {:method => :post}
timelog.connect 'time_entries/:id/destroy', :action => 'destroy', :conditions => {:method => :post}
end