FIX: Allow for nil upload record when migrating to S3

This commit is contained in:
David Taylor 2019-12-04 15:13:39 +00:00
parent b74679f231
commit 46d8fd3831
1 changed files with 1 additions and 1 deletions

View File

@ -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