summaryrefslogtreecommitdiff
path: root/app/helpers/version_check_helper.rb
blob: 456598b4c28cc26721f5750209bfb70c2574a89a (plain)
1
2
3
4
5
6
7
8
module VersionCheckHelper
  def version_status_badge
    if Rails.env.production? && current_application_settings.version_check_enabled
      image_url = VersionCheck.new.url
      image_tag image_url, class: 'js-version-status-badge'
    end
  end
end