mirror of
https://github.com/kemko/paperclip.git
synced 2026-01-01 16:05:40 +03:00
Закрываем tempfile в хранилище
This commit is contained in:
@@ -141,6 +141,11 @@ module Paperclip
|
||||
unless delay_processing? && dirty?
|
||||
(self.class.store_ids - [self.class.main_store_id]).each { |store_id| enqueue_sync_job(store_id) }
|
||||
end
|
||||
# HACK: Iostream пишет в tempfile, и он нигде не закрывается. Будем закрывать хотя бы тут
|
||||
if queued_for_write[:original]&.is_a?(Tempfile)
|
||||
queued_for_write[:original].close
|
||||
queued_for_write[:original].unlink
|
||||
end
|
||||
queued_for_write.clear
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user