Fix processing_image_url for S3 storage [SCI-3381]

This commit is contained in:
Oleksii Kriuchykhin 2019-05-14 12:53:35 +02:00
parent 8b11cec953
commit 65fb4b1372

View file

@ -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)