From b3866b05c14bd0f1fff4c54051f522e03e2bec36 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 3 Mar 2012 15:09:20 +0000 Subject: Removes all #verify calls in controllers. Verification is handled at routing level now that the default route is removed. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9061 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/timelog_controller.rb | 3 --- 1 file changed, 3 deletions(-) (limited to 'app/controllers/timelog_controller.rb') diff --git a/app/controllers/timelog_controller.rb b/app/controllers/timelog_controller.rb index dfa96d2d7..2feb129e2 100644 --- a/app/controllers/timelog_controller.rb +++ b/app/controllers/timelog_controller.rb @@ -121,7 +121,6 @@ class TimelogController < ApplicationController @time_entry.attributes = params[:time_entry] end - verify :method => :post, :only => :create, :render => {:nothing => true, :status => :method_not_allowed } def create @time_entry ||= TimeEntry.new(:project => @project, :issue => @issue, :user => User.current, :spent_on => User.current.today) @time_entry.attributes = params[:time_entry] @@ -156,7 +155,6 @@ class TimelogController < ApplicationController @time_entry.attributes = params[:time_entry] end - verify :method => :put, :only => :update, :render => {:nothing => true, :status => :method_not_allowed } def update @time_entry.attributes = params[:time_entry] @@ -200,7 +198,6 @@ class TimelogController < ApplicationController redirect_back_or_default({:controller => 'timelog', :action => 'index', :project_id => @projects.first}) end - verify :method => :delete, :only => :destroy, :render => {:nothing => true, :status => :method_not_allowed } def destroy @time_entries.each do |t| begin -- cgit v1.2.3