Removed useless rescue.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7981 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2011-11-29 18:20:39 +00:00
parent 361c059a6f
commit 740dc53aab
1 changed files with 0 additions and 4 deletions

View File

@ -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