jrgifford / delayed_paperclip

Process your Paperclip attachments in the background with delayed_job or Resque.
http://www.jstorimer.com/ruby/2010/01/30/delayed-paperclip.html
MIT License
402 stars 155 forks source link

What should happen if the original AR object is deleted before its bg job is started? #144

Closed Jesus closed 9 years ago

Jesus commented 9 years ago

I think the current behavior involves raising an ActiveRecord::RecordNotFound from DelayedPaperclip.process_job when the job is trying to fetch the originating object.

But maybe the job should be deleted when its parent object is deleted?

etagwerker commented 9 years ago

@Jesus This issue is a duplicate of https://github.com/jrgifford/delayed_paperclip/issues/101

Jesus commented 9 years ago

I hadn't seen it, thanks.

Btw, thanks for your contribution!