mirror of
https://github.com/redmine/redmine.git
synced 2025-11-08 06:15:59 +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.html { render :nothing => true }
|
||||||
format.api
|
format.api
|
||||||
end
|
end
|
||||||
rescue ActiveRecord::RecordNotFound
|
|
||||||
render_404
|
|
||||||
end
|
end
|
||||||
|
|
||||||
verify :method => :post, :only => :create, :render => {:nothing => true, :status => :method_not_allowed }
|
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.js { render(:update) {|page| page.remove "relation-#{@relation.id}"} }
|
||||||
format.api { head :ok }
|
format.api { head :ok }
|
||||||
end
|
end
|
||||||
rescue ActiveRecord::RecordNotFound
|
|
||||||
render_404
|
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|||||||
Reference in New Issue
Block a user