From 740dc53aab0c7cd9adf582c992cf0daf885a94c3 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Tue, 29 Nov 2011 18:20:39 +0000 Subject: [PATCH] Removed useless rescue. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7981 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/issue_relations_controller.rb | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app/controllers/issue_relations_controller.rb b/app/controllers/issue_relations_controller.rb index b51419f69..b721d3069 100644 --- a/app/controllers/issue_relations_controller.rb +++ b/app/controllers/issue_relations_controller.rb @@ -37,8 +37,6 @@ class IssueRelationsController < ApplicationController format.html { render :nothing => true } format.api end - rescue ActiveRecord::RecordNotFound - render_404 end verify :method => :post, :only => :create, :render => {:nothing => true, :status => :method_not_allowed } @@ -82,8 +80,6 @@ class IssueRelationsController < ApplicationController format.js { render(:update) {|page| page.remove "relation-#{@relation.id}"} } format.api { head :ok } end - rescue ActiveRecord::RecordNotFound - render_404 end private -- 2.39.5