mirror of
https://github.com/redmine/redmine.git
synced 2025-10-26 15:56:15 +01:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user