From e82fcb3fc585599c821ac6fde6e1ac3dedcce296 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Fri, 22 Nov 2019 16:49:53 +0000 Subject: [PATCH] cleanup: rubocop: fix Layout/SpaceAfterComma in app/controllers/issues_controller.rb git-svn-id: http://svn.redmine.org/redmine/trunk@19177 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/issues_controller.rb | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb index a3ca3bc6a..855adb217 100644 --- a/app/controllers/issues_controller.rb +++ b/app/controllers/issues_controller.rb @@ -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] -- 2.39.5