commit
d72cc7db0a
1 changed files with 2 additions and 2 deletions
|
@ -28,9 +28,9 @@ class ProcedureLogoUploader < BaseUploader
|
|||
if file.present?
|
||||
if original_filename.present? || model.logo_secure_token
|
||||
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
|
||||
filename = "logo-#{secure_token}.#{file.extension.downcase}"
|
||||
filename = "logo-#{secure_token}.#{file.extension&.downcase}"
|
||||
end
|
||||
end
|
||||
filename
|
||||
|
|
Loading…
Reference in a new issue