Closed jcbpl closed 11 years ago
I had no idea that paperclips default action was to overwrite the original as well. I think I may have lost some images to this in the past.
Yeah, caught me off guard. I noticed that if the :path contained :updated_at, the location of the original file changed after processing.
An alternative to this solution would be to modify delayed_paperclip to use has_attached_file
's only_process
option; might be closer to the expected behavior.
Is there any way to re-run the travis build? It failed on bundle install
.
Hmm I don't have rights to restart the job. @jrgifford can you hit restart on the actions for build 33.4?
Looking.
restarted, we'll know in a minute.
Looks good. :+1:
Wohoo!
Thanks!
Paperclip::Attachment.reprocess! doesn't use the only_process option set by
has_attached_file
.By default, reprocess! will delete and rewrite every style, including
:original
, which is unnecessary if you're just creating thumbnails.Includes passing test & readme update.