diff options
author | Go MAEDA <maeda@farend.jp> | 2019-03-17 13:36:03 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2019-03-17 13:36:03 +0000 |
commit | bd5977d97eaf92f852c1bfe499052b6b07ab8aae (patch) | |
tree | 714a9672c2007f78dbe7c2c5a649e24505ae9863 /app/helpers/context_menus_helper.rb | |
parent | 72a163d8b30978f23059ba2a2083675a38bd5680 (diff) | |
download | redmine-bd5977d97eaf92f852c1bfe499052b6b07ab8aae.tar.gz redmine-bd5977d97eaf92f852c1bfe499052b6b07ab8aae.zip |
Support frozen_string_literal in app/**/*.rb (#26561).
Contributed by Pavel Rosický.
git-svn-id: http://svn.redmine.org/redmine/trunk@17987 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers/context_menus_helper.rb')
-rw-r--r-- | app/helpers/context_menus_helper.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/helpers/context_menus_helper.rb b/app/helpers/context_menus_helper.rb index f0bbf15cc..06d4a2245 100644 --- a/app/helpers/context_menus_helper.rb +++ b/app/helpers/context_menus_helper.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true # Redmine - project management software # Copyright (C) 2006-2017 Jean-Philippe Lang @@ -21,14 +21,14 @@ module ContextMenusHelper def context_menu_link(name, url, options={}) options[:class] ||= '' if options.delete(:selected) - options[:class] << ' icon-checked disabled' + options[:class] += ' icon-checked disabled' options[:disabled] = true end if options.delete(:disabled) options.delete(:method) options.delete(:data) options[:onclick] = 'return false;' - options[:class] << ' disabled' + options[:class] += ' disabled' url = '#' end link_to h(name), url, options |