Commit deb384a7 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Prevent crash if file does not exists

parent 345fd545
module VersionCheckHelper module VersionCheckHelper
def version_status_badge def version_status_badge
if File.exists?(Rails.root.join('safe', 'public.pem'))
image_tag VersionCheck.new.url image_tag VersionCheck.new.url
end end
end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment