gitlab-org--gitlab-foss/app/helpers/version_check_helper.rb
Dmitriy Zaporozhets 0928c3ae04
Enable version check only for production environment
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2015-05-11 18:23:40 +03:00

7 lines
137 B
Ruby

module VersionCheckHelper
def version_status_badge
if Rails.env.production?
image_tag VersionCheck.new.url
end
end
end