Prevent crash if file does not exists
This commit is contained in:
parent
345fd545bf
commit
deb384a73b
1 changed files with 3 additions and 1 deletions
|
@ -1,5 +1,7 @@
|
|||
module VersionCheckHelper
|
||||
def version_status_badge
|
||||
if File.exists?(Rails.root.join('safe', 'public.pem'))
|
||||
image_tag VersionCheck.new.url
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue