summaryrefslogtreecommitdiffstats
path: root/app/controllers/trackers_controller.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-12-08 11:31:29 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-12-08 11:31:29 +0000
commit8ead410f988d7c45b94b18b6147d0f15348a55ee (patch)
tree4635e980ef8442fa41a233ff3edeeac4a2987661 /app/controllers/trackers_controller.rb
parent0bd70d4680513be455e1a612e7ad0f547246b5bd (diff)
downloadredmine-8ead410f988d7c45b94b18b6147d0f15348a55ee.tar.gz
redmine-8ead410f988d7c45b94b18b6147d0f15348a55ee.zip
Removed conditions on HTTP methods.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10962 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/trackers_controller.rb')
-rw-r--r--app/controllers/trackers_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/trackers_controller.rb b/app/controllers/trackers_controller.rb
index 78c907053..938e6e2bc 100644
--- a/app/controllers/trackers_controller.rb
+++ b/app/controllers/trackers_controller.rb
@@ -42,7 +42,7 @@ class TrackersController < ApplicationController
def create
@tracker = Tracker.new(params[:tracker])
- if request.post? and @tracker.save
+ if @tracker.save
# workflow copy
if !params[:copy_workflow_from].blank? && (copy_from = Tracker.find_by_id(params[:copy_workflow_from]))
@tracker.workflow_rules.copy(copy_from)
@@ -62,7 +62,7 @@ class TrackersController < ApplicationController
def update
@tracker = Tracker.find(params[:id])
- if request.put? and @tracker.update_attributes(params[:tracker])
+ if @tracker.update_attributes(params[:tracker])
flash[:notice] = l(:notice_successful_update)
redirect_to :action => 'index'
return