Render direct URLs for s3 images

This commit is contained in:
Matt-Yorkley
2023-05-04 01:30:50 +01:00
parent 6f12d012ed
commit b510668ecf

View File

@@ -25,6 +25,7 @@ module Spree
def url(size)
return unless attachment.attached?
return variant(size).processed.url if attachment.service.name == :amazon_public
url_for(variant(size))
end