debian-mirror-gitlab/app/helpers/version_check_helper.rb

8 lines
191 B
Ruby
Raw Normal View History

2015-09-11 14:41:01 +05:30
module VersionCheckHelper
def version_status_badge
2015-09-25 12:07:36 +05:30
if Rails.env.production? && current_application_settings.version_check_enabled
2015-09-11 14:41:01 +05:30
image_tag VersionCheck.new.url
end
end
end