From 2a5a131d031f1376a50ec92016ca647624d84db1 Mon Sep 17 00:00:00 2001 From: Nastia Gorokhova-Alekseeva Date: Mon, 20 Jun 2022 16:51:50 +0300 Subject: [PATCH] =?UTF-8?q?=D0=97=D0=B0=D0=B1=D1=8B=D0=BB=D0=B8=20=D0=BF?= =?UTF-8?q?=D0=BE=D0=BB=D1=83=D1=87=D0=B8=D1=82=D1=8C=20=D1=85=D1=80=D0=B0?= =?UTF-8?q?=D0=BD=D0=B8=D0=BB=D0=B8=D1=89=D0=B5=20=D0=B2=D0=BC=D0=B5=D1=81?= =?UTF-8?q?=D1=82=D0=BE=20id?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/paperclip/storage/no_cache_s3.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/paperclip/storage/no_cache_s3.rb b/lib/paperclip/storage/no_cache_s3.rb index 4071d2a..1321568 100644 --- a/lib/paperclip/storage/no_cache_s3.rb +++ b/lib/paperclip/storage/no_cache_s3.rb @@ -93,7 +93,7 @@ module Paperclip return unless synced_to?(self.class.main_store_id) if self.class.download_by_url - create_tempfile(self.class.main_store_id.object(style_key).get.body.read) + create_tempfile(self.class.store_by(self.class.main_store_id).object(style_key).get.body.read) else download_from_store(self.class.main_store_id, style_key) end