1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-30 20:29:37 +00:00

code cleanup: rubocop: fix Style/MultilineTernaryOperator in lib/redmine/utils.rb

git-svn-id: http://svn.redmine.org/redmine/trunk@18734 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2019-10-19 04:30:01 +00:00
parent 41e774de6e
commit 27e30a9701
2 changed files with 4 additions and 3 deletions

View File

@ -1097,7 +1097,6 @@ Style/MultilineTernaryOperator:
- 'lib/redmine/ciphering.rb'
- 'lib/redmine/scm/adapters/filesystem_adapter.rb'
- 'lib/redmine/scm/adapters/git_adapter.rb'
- 'lib/redmine/utils.rb'
Style/MultipleComparison:
Exclude:

View File

@ -24,9 +24,11 @@ module Redmine
class << self
# Returns the relative root url of the application
def relative_url_root
ActionController::Base.respond_to?('relative_url_root') ?
ActionController::Base.relative_url_root.to_s :
if ActionController::Base.respond_to?('relative_url_root')
ActionController::Base.relative_url_root.to_s
else
ActionController::Base.config.relative_url_root.to_s
end
end
# Sets the relative root url of the application