Skip to content

Commit

Permalink
Make public uris use dev urls, too.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sven Felix Oberquelle committed Apr 25, 2018
1 parent 00be1ae commit d1ab3d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/paperclip/storage/azure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d1ab3d6

Please sign in to comment.