From 22aee2f1bb0a4c6450ccbfe2af238da8644780d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C3=ADas=20Mascazzini?= Date: Wed, 13 Apr 2016 22:35:58 -0300 Subject: [PATCH] Fix Rails 5 ActiveSupport::TimeWithZone.since fix the problem when we try to return a file --- 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 280e5ee..4574534 100644 --- a/lib/paperclip/storage/azure.rb +++ b/lib/paperclip/storage/azure.rb @@ -75,7 +75,7 @@ def expiring_url(time = 3600, style_name = default_style) resource: 'b', permissions: 'r', start: 5.minutes.ago.utc.iso8601, - expiry: time.since.utc.iso8601, + expiry: time.since(0).utc.iso8601, access_key: azure_credentials[:access_key] }, azure_account_name