mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Removing the image serializer, causing regression bugs
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
module Spree
|
||||
|
||||
class ImageSerializer < ActiveModel::Serializer
|
||||
attributes :id, :small_url, :alt
|
||||
|
||||
def small_url
|
||||
object.attachment.url(:small, false)
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user