From: Jean-Philippe Lang Date: Tue, 29 Nov 2011 18:20:39 +0000 (+0000) Subject: Removed useless rescue. X-Git-Tag: 1.3.0~31 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=740dc53aab0c7cd9adf582c992cf0daf885a94c3;p=redmine.git Removed useless rescue. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7981 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- 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