mirror of
https://github.com/redmine/redmine.git
synced 2025-12-16 05:20:28 +01:00
use "do end" instead of {} at IssueRelationsController
git-svn-id: http://svn.redmine.org/redmine/trunk@20314 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -58,16 +58,16 @@ class IssueRelationsController < ApplicationController
|
|||||||
|
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.html { redirect_to issue_path(@issue) }
|
format.html { redirect_to issue_path(@issue) }
|
||||||
format.js {
|
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 {
|
format.api do
|
||||||
if saved
|
if saved
|
||||||
render :action => 'show', :status => :created, :location => relation_url(@relation)
|
render :action => 'show', :status => :created, :location => relation_url(@relation)
|
||||||
else
|
else
|
||||||
render_validation_errors(@relation)
|
render_validation_errors(@relation)
|
||||||
end
|
end
|
||||||
}
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user