From 504cb8e1474d9d24591c3711f8410b2f6c533bf3 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sun, 24 Nov 2019 16:45:22 +0000 Subject: [PATCH] cleanup: rubocop: fix Layout/SpaceAfterComma in app/helpers/application_helper.rb git-svn-id: http://svn.redmine.org/redmine/trunk@19273 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/helpers/application_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 02dcf22fc..17540e3f0 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -423,7 +423,7 @@ module ApplicationHelper # Renders flash messages def render_flash_messages s = +'' - flash.each do |k,v| + flash.each do |k, v| s << content_tag('div', v.html_safe, :class => "flash #{k}", :id => "flash_#{k}") end s.html_safe @@ -1629,7 +1629,7 @@ module ApplicationHelper # TODO: use #image_url introduced in Rails4 path = favicon_path base = url_for(:controller => 'welcome', :action => 'index', :only_path => false) - base.sub(%r{/+$},'') + '/' + path.sub(%r{^/+},'') + base.sub(%r{/+$}, '') + '/' + path.sub(%r{^/+}, '') end def robot_exclusion_tag -- 2.39.5