summaryrefslogtreecommitdiffstats
path: root/app/helpers
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-24 16:45:22 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-24 16:45:22 +0000
commit504cb8e1474d9d24591c3711f8410b2f6c533bf3 (patch)
tree9b9426c355d312c5dff86e8ebec796ad7fbefad6 /app/helpers
parentd81846ccc9fc89711f05b447ae25e7f9bd610e8c (diff)
downloadredmine-504cb8e1474d9d24591c3711f8410b2f6c533bf3.tar.gz
redmine-504cb8e1474d9d24591c3711f8410b2f6c533bf3.zip
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
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/application_helper.rb4
1 files 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