diff options
author | Eric Davis <edavis@littlestreamsoftware.com> | 2010-10-12 15:55:21 +0000 |
---|---|---|
committer | Eric Davis <edavis@littlestreamsoftware.com> | 2010-10-12 15:55:21 +0000 |
commit | 718816c5d4b0c45ce1def155c9f517fb5ac91e35 (patch) | |
tree | e93a1b1140dabe388d1988feabbc133443d15d08 /app/controllers/timelog_controller.rb | |
parent | 71dd4b8a7db0208be22175a69fb71909933f4c57 (diff) | |
download | redmine-718816c5d4b0c45ce1def155c9f517fb5ac91e35.tar.gz redmine-718816c5d4b0c45ce1def155c9f517fb5ac91e35.zip |
Refactor: convert timelogs to a REST resource (:time_entries)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4250 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/timelog_controller.rb')
-rw-r--r-- | app/controllers/timelog_controller.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/controllers/timelog_controller.rb b/app/controllers/timelog_controller.rb index d533b10ef..3030bb06e 100644 --- a/app/controllers/timelog_controller.rb +++ b/app/controllers/timelog_controller.rb @@ -20,8 +20,6 @@ class TimelogController < ApplicationController before_filter :find_project, :authorize, :only => [:new, :create, :edit, :update, :destroy] before_filter :find_optional_project, :only => [:index] - verify :method => :post, :only => :destroy, :redirect_to => { :action => :index } - helper :sort include SortHelper helper :issues @@ -131,6 +129,7 @@ class TimelogController < ApplicationController end end + verify :method => :delete, :only => :destroy, :render => {:nothing => true, :status => :method_not_allowed } def destroy (render_404; return) unless @time_entry (render_403; return) unless @time_entry.editable_by?(User.current) |