From 718816c5d4b0c45ce1def155c9f517fb5ac91e35 Mon Sep 17 00:00:00 2001 From: Eric Davis Date: Tue, 12 Oct 2010 15:55:21 +0000 Subject: 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 --- app/controllers/timelog_controller.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'app/controllers/timelog_controller.rb') 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) -- cgit v1.2.3