]> source.dussan.org Git - redmine.git/commitdiff
use "do end" instead of {} at IssueRelationsController
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 9 Nov 2020 13:24:44 +0000 (13:24 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 9 Nov 2020 13:24:44 +0000 (13:24 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@20314 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/issue_relations_controller.rb

index f1d96656ea29ae53d409cd5192064155c95036d3..648ced3d33d17461e8e1d11a4ed1184c7a4381d3 100644 (file)
@@ -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