Commit e7410db7 by Tom Ward Committed by Jon Yurek

Small hack to allow reprocessing of images stored on S3

(cherry picked from commit 64ae23ba01885e22cc69bf1264f339784ce32fc9)
parent 3de4cd14
......@@ -207,7 +207,7 @@ module Paperclip
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 }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment