From 65fb4b137298a0840ed5823de12f79755cf3b13d Mon Sep 17 00:00:00 2001 From: Oleksii Kriuchykhin Date: Tue, 14 May 2019 12:53:35 +0200 Subject: [PATCH] Fix processing_image_url for S3 storage [SCI-3381] --- app/models/asset.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/asset.rb b/app/models/asset.rb index dd11c98dd..f56f0fb73 100644 --- a/app/models/asset.rb +++ b/app/models/asset.rb @@ -320,7 +320,7 @@ class Asset < ApplicationRecord end def url(style = :original, timeout: Constants::URL_SHORT_EXPIRE_TIME) - if file.is_stored_on_s3? + if file.is_stored_on_s3? && !file.processing? presigned_url(style, timeout: timeout) else file.url(style)