lib/carrierwave/storage/sftp.rb in carrierwave-ftp-0.3.0 vs lib/carrierwave/storage/sftp.rb in carrierwave-ftp-0.3.1
- old
+ new
@@ -40,9 +40,10 @@
temp_file = Tempfile.new(filename)
temp_file.binmode
connection do |sftp|
sftp.download!(full_path, temp_file)
end
+ temp_file.open
temp_file.rewind
temp_file
end
def size