Skip to content

Commit

Permalink
Small hack to allow reprocessing of images stored on S3
Browse files Browse the repository at this point in the history
(cherry picked from commit 64ae23b)
  • Loading branch information
tomafro authored and Jon Yurek committed Jun 16, 2010
1 parent 3de4cd1 commit e7410db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/paperclip/attachment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down

0 comments on commit e7410db

Please sign in to comment.