From 3b45012598eee9181b548dbef1bae8351ecccf5b Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Mon, 9 Nov 2020 13:24:44 +0000 Subject: [PATCH] use "do end" instead of {} at IssueRelationsController git-svn-id: http://svn.redmine.org/redmine/trunk@20314 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/issue_relations_controller.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/controllers/issue_relations_controller.rb b/app/controllers/issue_relations_controller.rb index f1d96656e..648ced3d3 100644 --- a/app/controllers/issue_relations_controller.rb +++ b/app/controllers/issue_relations_controller.rb @@ -58,16 +58,16 @@ class IssueRelationsController < ApplicationController respond_to do |format| 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? } - } - format.api { + end + format.api do if saved render :action => 'show', :status => :created, :location => relation_url(@relation) else render_validation_errors(@relation) end - } + end end end -- 2.39.5