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:
parent
361c059a6f
commit
740dc53aab
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue