Skip to content

Commit 8e69f16

Browse files
author
Sven Felix Oberquelle
committed
Make expiring_url return a string instead of a url object.
This is more consistent to the normal url method.
1 parent 8c260a2 commit 8e69f16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/paperclip/storage/azure.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def expiring_url(time = 3600, style_name = default_style)
9292
permissions: 'r',
9393
start: (Time.now - (5 * 60)).utc.iso8601,
9494
expiry: (Time.now + time).utc.iso8601
95-
azure_interface.generate_uri uri.path, CGI::parse(uri.query || "")
95+
azure_interface.generate_uri(uri.path, CGI::parse(uri.query || "")).to_s
9696
else
9797
url(style_name)
9898
end

0 commit comments

Comments
 (0)