@relations = @issue.relations
respond_to do |format|
- format.html { head 200 }
+ format.html {head 200}
format.api
end
end
raise Unauthorized unless @relation.visible?
respond_to do |format|
- format.html { head 200 }
+ format.html {head 200}
format.api
end
end
end
respond_to do |format|
- format.html { redirect_to issue_path(@issue) }
+ format.html {redirect_to issue_path(@issue)}
format.js do
- @relations = @issue.reload.relations.select {|r| r.other_issue(@issue) && r.other_issue(@issue).visible? }
+ @relations = @issue.reload.relations.select {|r| r.other_issue(@issue) && r.other_issue(@issue).visible?}
end
format.api do
if saved
@relation.destroy
respond_to do |format|
- format.html { redirect_to issue_path(@relation.issue_from) }
+ format.html {redirect_to issue_path(@relation.issue_from)}
format.js
- format.api { render_api_ok }
+ format.api {render_api_ok}
end
end