lib/paperclip/io_adapters/stringio_adapter.rb in kt-paperclip-5.4.0 vs lib/paperclip/io_adapters/stringio_adapter.rb in kt-paperclip-6.2.0
- old
+ new
@@ -22,10 +22,10 @@
@content_type = ContentTypeDetector.new(@tempfile.path).detect
@size = @target.size
end
def copy_to_tempfile(source)
- while data = source.read(16*1024)
+ while data = source.read(16 * 1024)
destination.write(data)
end
destination.rewind
destination
end