diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-10-19 04:30:01 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-10-19 04:30:01 +0000 |
commit | 27e30a9701178f65ca71ddfb56bcd1015b124363 (patch) | |
tree | 2863b12ec2160c6254e3bc60d01024eb0cc39aca /lib | |
parent | 41e774de6e16519ff717cf23b2862dc5ccf50a12 (diff) | |
download | redmine-27e30a9701178f65ca71ddfb56bcd1015b124363.tar.gz redmine-27e30a9701178f65ca71ddfb56bcd1015b124363.zip |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/redmine/utils.rb | 6 |
1 files changed, 4 insertions, 2 deletions
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 |