Fix batch attachment deletion when using OpenStack Swift (#27554)
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user