FIX: Allow for nil upload record when migrating to S3
This commit is contained in:
parent
b74679f231
commit
46d8fd3831
|
@ -428,7 +428,7 @@ def migrate_to_s3
|
|||
%Q{attachment; filename="#{upload.original_filename}"}
|
||||
end
|
||||
|
||||
if upload.secure
|
||||
if upload&.secure
|
||||
options[:acl] = "private"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue