Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Small hack to allow reprocessing of images stored on S3

  • Loading branch information...
commit 64ae23ba01885e22cc69bf1264f339784ce32fc9 1 parent 74a4485
@tomafro tomafro authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/paperclip/attachment.rb
View
2  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 }
Please sign in to comment.
Something went wrong with that request. Please try again.