Permalink
Browse files

Small hack to allow reprocessing of images stored on S3

  • Loading branch information...
1 parent 74a4485 commit 64ae23ba01885e22cc69bf1264f339784ce32fc9 @tomafro tomafro committed Sep 18, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/paperclip/attachment.rb
@@ -166,7 +166,7 @@ def self.interpolations
def reprocess!
new_original = Tempfile.new("paperclip-reprocess")
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 64ae23b

Please sign in to comment.