From 1128ce46fcd2977e425792eec97ee0974f8b0698 Mon Sep 17 00:00:00 2001 From: Daniel Felix Date: Mon, 7 Oct 2013 10:48:12 +0200 Subject: [PATCH] Update custom_help_url.rb A little bit cleaner Code. --- lib/redmine_tweaks/custom_help_url.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/redmine_tweaks/custom_help_url.rb b/lib/redmine_tweaks/custom_help_url.rb index eeb866ab..dc480d56 100644 --- a/lib/redmine_tweaks/custom_help_url.rb +++ b/lib/redmine_tweaks/custom_help_url.rb @@ -17,7 +17,9 @@ module RedmineTweaks module Redmine module Info class << self - def help_url; !Setting.plugin_redmine_tweaks['custom_help_url'].blank? ? Setting.plugin_redmine_tweaks['custom_help_url'] : 'http://www.redmine.org/guide' end + def help_url + Setting.plugin_redmine_tweaks['custom_help_url'] || 'http://www.redmine.org/guide' + end end end end @@ -28,4 +30,4 @@ end # Now include the namespace module into Redmine::Info module unless Redmine::Info.included_modules.include? RedmineTweaks::CustomHelpUrl::Redmine::Info Redmine::Info.send(:include, RedmineTweaks::CustomHelpUrl::Redmine::Info) -end \ No newline at end of file +end