Avoid queuing jobs that have been marked for deletion #19
I just started using delayed_paperclip today and I noticed that the
Turns out Paperclip does an intermediary update that sets all paperclip attributes to nil. This triggers the :after_save event, which triggers the enqueue method. This stinks on Paperclip's part, but I guess sometimes you just deal.
I couldn't get the test environment to work for me, but I didn't spend a lot of time at it (I'm actually at a client's now). If you would like a test, I can get that for you later.
Cheers, and thanks for your work!
The text was updated successfully, but these errors were encountered:
When deleting a record that has_attached_file, paperclip temporarily sets all paperclip attributes to nil until the deletion is complete. However, this triggers the :after_save callback and erroneously queues a job that can never be completed since the record will no longer exist.