jstorimer/delayed_paperclip — pull request #62 by tommeier (2012-03-20 06:12:34+00:00)
Title: [Fix] most_appropiate_url changed to be part of Paperclip::UrlGenerator,...

... tested across rails versions and added Rails 3.2 to test suite. Paperclip version bumped to 2.7.

Main issue :

* attachment_updated_at was not being updated, new Paperclip (> 2.4.5) assigns the updated_at of the attachment, when S3 took too long, or the queue takes longer than a second to pick the image up, the attachment_updated_at and instance.updated_at get out of sync, and the url generated (with :updated_at in the hash_data - default), will not find the newly created images.

* Not sure the best way to write Test::Unit specs for this. It would need to forward time, between the queue picking up the initial saved image, then test to see that the images were both created, and the url exists... I guess it could be duped for a filestore by setting :updated_at in the @hash_data options or similar.