BigW Consortium Gitlab

version_check_helper.rb 191 Bytes
Newer Older
1 2
module VersionCheckHelper
  def version_status_badge
3
    if Rails.env.production? && current_application_settings.version_check_enabled
4 5
      image_tag VersionCheck.new.url
    end
6 7
  end
end