From 33d24a08cc46b3428cf2d34a8e6be0a11a4bb0d8 Mon Sep 17 00:00:00 2001 From: Vasily Fedoseyev Date: Tue, 6 Sep 2022 20:21:34 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=B0=D1=80=D0=B0=D0=BC=D0=B5=D1=82?= =?UTF-8?q?=D1=80=D1=8B=20=D0=B4=D0=B6=D0=BE=D0=B1=D1=8B=20=D0=B4=D0=BE?= =?UTF-8?q?=D0=BB=D0=B6=D0=BD=D1=8B=20=D0=BE=D0=B4=D0=BD=D0=BE=D0=B7=D0=BD?= =?UTF-8?q?=D0=B0=D1=87=D0=BD=D0=BE=20=D1=81=D0=B5=D1=80=D0=B8=D0=B0=D0=BB?= =?UTF-8?q?=D0=B8=D0=B7=D0=BE=D0=B2=D0=B0=D1=82=D1=8C=D1=81=D1=8F=20=D0=B2?= =?UTF-8?q?=20json=20=D0=B8=20=D0=BE=D0=B1=D1=80=D0=B0=D1=82=D0=BD=D0=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/paperclip/storage/delayed_upload.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/paperclip/storage/delayed_upload.rb b/lib/paperclip/storage/delayed_upload.rb index 4547fa1..0e8d257 100644 --- a/lib/paperclip/storage/delayed_upload.rb +++ b/lib/paperclip/storage/delayed_upload.rb @@ -15,8 +15,8 @@ module Paperclip args = [ instance.class.name, instance.id, - attachment.class.attachment_name, - store_id + attachment.class.attachment_name.to_s, + store_id.to_s # args must be serializable to json without type changes thus strings only ] delay.present? ? perform_in(delay, *args) : perform_async(*args)