Commit deb384a7 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Prevent crash if file does not exists

parent 345fd545
module VersionCheckHelper
def version_status_badge
image_tag VersionCheck.new.url
if File.exists?(Rails.root.join('safe', 'public.pem'))
image_tag VersionCheck.new.url
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