Merge pull request #5701 from Matt-Yorkley/noimage

Noimage
This commit is contained in:
Luis Ramos
2020-07-02 20:17:04 +01:00
committed by GitHub
18 changed files with 17 additions and 23 deletions

View File

@@ -12,7 +12,7 @@ class Api::Admin::ProductSerializer < ActiveModel::Serializer
if object.images.present?
object.images.first.attachment.url(:product)
else
"/assets/noimage/product.png"
"/noimage/product.png"
end
end
@@ -20,7 +20,7 @@ class Api::Admin::ProductSerializer < ActiveModel::Serializer
if object.images.present?
object.images.first.attachment.url(:mini)
else
"/assets/noimage/mini.png"
"/noimage/mini.png"
end
end