mirror of
https://github.com/redmine/redmine.git
synced 2025-11-05 04:45:57 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user