mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-15 15:46:08 +10:00
Prevent crash if file does not exists
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user