Sha256: 09f58e2ee4e1d45a89eba9d20afe27ef7e2750c635bef1137f5236638b86fa5d
Contents?: true
Size: 315 Bytes
Versions: 2
Compression:
Stored size: 315 Bytes
Contents
module Spree class BaseSerializer < SolidusJsonApi.parent_serializer def image_links(object) { original: object.url(:original), mini: object.url(:mini), small: object.url(:small), product: object.url(:product), large: object.url(:large) } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
solidus_json_api-0.3.1 | app/serializers/spree/base_serializer.rb |
solidus_json_api-0.3.0 | app/serializers/spree/base_serializer.rb |