Permalink
Browse files

Small hack to allow reprocessing of images stored on S3

(cherry picked from commit 64ae23b)
  • Loading branch information...
1 parent 3de4cd1 commit e7410db7e089b5ca9a84b5443f1f216e8c10ece8 @tomafro tomafro committed with jyurek Sep 18, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/paperclip/attachment.rb
@@ -207,7 +207,7 @@ def reprocess!
new_original = Tempfile.new("paperclip-reprocess")
new_original.binmode
if old_original = to_file(:original)
- new_original.write( old_original.read )
+ new_original.write( old_original.respond_to?(:get) ? old_original.get : old_original.read )
new_original.rewind
@queued_for_write = { :original => new_original }

0 comments on commit e7410db

Please sign in to comment.