]> source.dussan.org Git - redmine.git/commitdiff
cleanup: rubocop: fix Layout/SpaceAfterComma in app/controllers/issues_controller.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 22 Nov 2019 16:49:53 +0000 (16:49 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 22 Nov 2019 16:49:53 +0000 (16:49 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@19177 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/issues_controller.rb

index a3ca3bc6ab9d7be674d15eb2df93c1f1ed3656eb..855adb217238362c0410cde0bc2fa84c61a74626 100644 (file)
@@ -298,7 +298,7 @@ class IssuesController < ApplicationController
         end
       end
     end
-    @values_by_custom_field.delete_if {|k,v| v.blank?}
+    @values_by_custom_field.delete_if {|k, v| v.blank?}
     @custom_fields =
       edited_issues.map{|i| i.editable_custom_fields}.
         reduce(:&).select {|field| field.format.bulk_edit_supported}
@@ -495,7 +495,7 @@ class IssuesController < ApplicationController
       :next_issue_id => params[:next_issue_id],
       :issue_position => params[:issue_position],
       :issue_count => params[:issue_count]
-    }.reject {|k,v| k.blank?}
+    }.reject {|k, v| k.blank?}
   end
 
   # Used by #edit and #update to set some common instance variables
@@ -646,7 +646,11 @@ class IssuesController < ApplicationController
   def redirect_after_create
     if params[:continue]
       url_params = {}
-      url_params[:issue] = {:tracker_id => @issue.tracker, :parent_issue_id => @issue.parent_issue_id}.reject {|k,v| v.nil?}
+      url_params[:issue] =
+        {
+          :tracker_id => @issue.tracker,
+          :parent_issue_id => @issue.parent_issue_id
+        }.reject {|k, v| v.nil?}
       url_params[:back_url] = params[:back_url].presence
 
       if params[:project_id]