How can I move deleting photos to the background with delayed_job and paperclip
- by Tam
I let my users create photo albums with many photos. Relationship as follows:
has_many :album_photos, :dependent => :destroy
i upload photos to S3
When the user delete album I want to delete all photos as the relationship shows but it takes time if the user has many photos.
Can I automatically set photo deletion to happen in the background (delayed_job) without having to manually call 'send_later' on every photo?