mirror of
https://github.com/redmine/redmine.git
synced 2026-02-07 07:10:18 +01: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:
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user