From 27e30a9701178f65ca71ddfb56bcd1015b124363 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sat, 19 Oct 2019 04:30:01 +0000 Subject: 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 --- lib/redmine/utils.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/redmine/utils.rb b/lib/redmine/utils.rb index a876070a8..d9a3819e6 100644 --- a/lib/redmine/utils.rb +++ b/lib/redmine/utils.rb @@ -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 -- cgit v1.2.3