@@ -37,8 +37,6 class IssueRelationsController < ApplicationController | |||||
37 | format.html { render :nothing => true } |
|
37 | format.html { render :nothing => true } | |
38 | format.api |
|
38 | format.api | |
39 | end |
|
39 | end | |
40 | rescue ActiveRecord::RecordNotFound |
|
|||
41 | render_404 |
|
|||
42 | end |
|
40 | end | |
43 |
|
41 | |||
44 | verify :method => :post, :only => :create, :render => {:nothing => true, :status => :method_not_allowed } |
|
42 | verify :method => :post, :only => :create, :render => {:nothing => true, :status => :method_not_allowed } | |
@@ -82,8 +80,6 class IssueRelationsController < ApplicationController | |||||
82 | format.js { render(:update) {|page| page.remove "relation-#{@relation.id}"} } |
|
80 | format.js { render(:update) {|page| page.remove "relation-#{@relation.id}"} } | |
83 | format.api { head :ok } |
|
81 | format.api { head :ok } | |
84 | end |
|
82 | end | |
85 | rescue ActiveRecord::RecordNotFound |
|
|||
86 | render_404 |
|
|||
87 | end |
|
83 | end | |
88 |
|
84 | |||
89 | private |
|
85 | private |
General Comments 0
You need to be logged in to leave comments.
Login now