]> source.dussan.org Git - redmine.git/commitdiff
remove spaces inside {} of IssueRelationsController
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 14 Nov 2020 13:18:18 +0000 (13:18 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 14 Nov 2020 13:18:18 +0000 (13:18 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@20369 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/issue_relations_controller.rb

index 648ced3d33d17461e8e1d11a4ed1184c7a4381d3..1cceba576f0b11f7b2c316677347b8eab1952715 100644 (file)
@@ -29,7 +29,7 @@ class IssueRelationsController < ApplicationController
     @relations = @issue.relations
 
     respond_to do |format|
-      format.html { head 200 }
+      format.html {head 200}
       format.api
     end
   end
@@ -38,7 +38,7 @@ class IssueRelationsController < ApplicationController
     raise Unauthorized unless @relation.visible?
 
     respond_to do |format|
-      format.html { head 200 }
+      format.html {head 200}
       format.api
     end
   end
@@ -57,9 +57,9 @@ class IssueRelationsController < ApplicationController
     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
@@ -78,9 +78,9 @@ class IssueRelationsController < ApplicationController
     @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