From 15e5d95a8468633bd2d400513c35f53c14d8b925 Mon Sep 17 00:00:00 2001 From: Nastia Gorokhova-Alekseeva Date: Mon, 5 Dec 2022 19:08:37 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=B5=D1=80=D0=B5=D0=B8=D0=BC=D0=B5?= =?UTF-8?q?=D0=BD=D0=BE=D0=B2=D1=8B=D0=B2=D0=B0=D0=B5=D0=BC=20=D0=B2=D1=80?= =?UTF-8?q?=D0=B5=D0=BC=D0=B5=D0=BD=D0=BD=D1=8B=D0=B5=20=D1=84=D0=B0=D0=B9?= =?UTF-8?q?=D0=BB=D1=8B,=20=D1=87=D1=82=D0=BE=D0=B1=D1=8B=20=D0=BF=D1=80?= =?UTF-8?q?=D0=BE=D0=B2=D0=B5=D1=80=D0=B8=D1=82=D1=8C,=20=D0=BA=D1=82?= =?UTF-8?q?=D0=BE=20=D0=B8=D1=85=20=D1=81=D0=BE=D0=B7=D0=B4=D0=B0=D1=91?= =?UTF-8?q?=D1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/paperclip/iostream.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/paperclip/iostream.rb b/lib/paperclip/iostream.rb index d14407a..1ad335b 100644 --- a/lib/paperclip/iostream.rb +++ b/lib/paperclip/iostream.rb @@ -5,7 +5,7 @@ module IOStream def to_tempfile(object) return object.to_tempfile if object.respond_to?(:to_tempfile) name = object.respond_to?(:original_filename) ? object.original_filename : (object.respond_to?(:path) ? object.path : "stream") - tempfile = Tempfile.new(["stream", File.extname(name)]) + tempfile = Tempfile.new(["ppc-iostream", File.extname(name)]) tempfile.binmode stream_to(object, tempfile) end