diff options
author | Claire <claire.github-309c@sitedethib.com> | 2023-10-25 15:55:57 +0200 |
---|---|---|
committer | Claire <claire.github-309c@sitedethib.com> | 2023-12-04 15:28:15 +0100 |
commit | 4c3870647414f4cbd05373b0767d79e89a0db9a2 (patch) | |
tree | 2c361d9b3558339d66c2bb375036f605f3390ec9 | |
parent | 4fc252354624d5b0fbafd86251204cc19edc525d (diff) |
Fix batch attachment deletion when using OpenStack Swift (#27554)
-rw-r--r-- | app/lib/attachment_batch.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/lib/attachment_batch.rb b/app/lib/attachment_batch.rb index b75938bdd76..78bd5931603 100644 --- a/app/lib/attachment_batch.rb +++ b/app/lib/attachment_batch.rb @@ -75,7 +75,7 @@ class AttachmentBatch end when :fog logger.debug { "Deleting #{attachment.path(style)}" } - attachment.directory.files.new(key: attachment.path(style)).destroy + attachment.send(:directory).files.new(key: attachment.path(style)).destroy when :azure logger.debug { "Deleting #{attachment.path(style)}" } attachment.destroy |