From b6a26a60f3d425f340adc76e27d38c19505f254c Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Wed, 29 Dec 2021 06:12:27 +0000 Subject: Fixes for Performance/StringIdentifierArgument introduced in RuboCop Performance 1.13.0 (#35142). git-svn-id: http://svn.redmine.org/redmine/trunk@21330 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine/utils.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/redmine/utils.rb') diff --git a/lib/redmine/utils.rb b/lib/redmine/utils.rb index 386919a25..dd0622fee 100644 --- a/lib/redmine/utils.rb +++ b/lib/redmine/utils.rb @@ -26,7 +26,7 @@ module Redmine class << self # Returns the relative root url of the application def relative_url_root - if ActionController::Base.respond_to?('relative_url_root') + if ActionController::Base.respond_to?(:relative_url_root) ActionController::Base.relative_url_root.to_s else ActionController::Base.config.relative_url_root.to_s @@ -35,7 +35,7 @@ module Redmine # Sets the relative root url of the application def relative_url_root=(arg) - if ActionController::Base.respond_to?('relative_url_root=') + if ActionController::Base.respond_to?(:relative_url_root=) ActionController::Base.relative_url_root=arg else ActionController::Base.config.relative_url_root = arg -- cgit v1.2.3