mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Render direct URLs for s3 images
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user