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:
parent
41e774de6e
commit
27e30a9701
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user