Fix Sentry 238

This commit is contained in:
Mathieu Magnin 2019-02-25 14:52:52 +01:00
parent 42c3bd5db0
commit b3c0a261d7

View file

@ -28,9 +28,9 @@ class ProcedureLogoUploader < BaseUploader
if file.present? if file.present?
if original_filename.present? || model.logo_secure_token if original_filename.present? || model.logo_secure_token
if Flipflop.remote_storage? if Flipflop.remote_storage?
filename = "#{model.class.to_s.underscore}-#{secure_token}.#{file.extension.downcase}" filename = "#{model.class.to_s.underscore}-#{secure_token}.#{file.extension&.downcase}"
else else
filename = "logo-#{secure_token}.#{file.extension.downcase}" filename = "logo-#{secure_token}.#{file.extension&.downcase}"
end end
end end
filename filename