From d1ab3d6b0041e19dec96a14cddeca5e2024a4bcc Mon Sep 17 00:00:00 2001 From: Sven Felix Oberquelle Date: Wed, 25 Apr 2018 17:36:06 +0200 Subject: [PATCH] Make public uris use dev urls, too. --- lib/paperclip/storage/azure.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/paperclip/storage/azure.rb b/lib/paperclip/storage/azure.rb index f513d9f..f95bfb2 100644 --- a/lib/paperclip/storage/azure.rb +++ b/lib/paperclip/storage/azure.rb @@ -154,7 +154,8 @@ def obtain_azure_instance_for(options) end def azure_uri(style_name = default_style) - "#{azure_storage_client.storage_blob_host}/#{container_name}/#{path(style_name).gsub(%r{\A/}, '')}" + uri = URI "#{container_name}/#{path(style_name).gsub(%r{\A/}, '')}" + azure_interface.generate_uri uri.path, CGI::parse(uri.query || "") end def azure_base_url