Skip to content

Commit

Permalink
fix s3 to_file
Browse files Browse the repository at this point in the history
  • Loading branch information
jakehow committed Oct 7, 2010
1 parent cd2c74c commit 511c1ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/paperclip/storage/s3.rb
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def s3_protocol
def to_file style = default_style
tmp_file = Tempfile.new("s3_data")
tmp_file.binmode
tmp_file.write(s3_bucket.key(path(style)).data)
tmp_file.write(AWS::S3::S3Object.value(path(style), bucket_name))
tmp_file.rewind
@queued_for_write[style] || tmp_file
end
Expand Down

0 comments on commit 511c1ce

Please sign in to comment.