From 1f2a0e554cf7cbb3218b59a37f47d34497b564ba Mon Sep 17 00:00:00 2001 From: june29 Date: Tue, 31 Oct 2023 14:38:44 +0900 Subject: [PATCH] Pass argument to azure_uri in expiring_url --- lib/paperclip/storage/azure.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/paperclip/storage/azure.rb b/lib/paperclip/storage/azure.rb index b638bff..f4676e6 100644 --- a/lib/paperclip/storage/azure.rb +++ b/lib/paperclip/storage/azure.rb @@ -89,7 +89,7 @@ def expiring_url(time = 3600, style_name = default_style) azure_credentials[:storage_access_key] ) obj_path = path(style_name).gsub(%r{\A/}, '') - "#{azure_uri}?#{signer.generate_token(container_name, obj_path, 'r', time)}" + "#{azure_uri(style_name)}?#{signer.generate_token(container_name, obj_path, 'r', time)}" else url(style_name) end