Sha256: 586c2015a5ec7f17a0dfef94b95eaf89f1e5313644701b80c085ffb3d3b04452

Contents?: true

Size: 208 Bytes

Versions: 7

Compression:

Stored size: 208 Bytes

Contents

module Spree
  class ImageSerializer < Spree::BaseSerializer
    attributes :position, :alt, :links

    belongs_to :viewable

    private

    def links
      image_links object.attachment
    end
  end
end

Version data entries

7 entries across 7 versions & 3 rubygems

Version Path
solidus_json_api-0.3.0 app/serializers/spree/image_serializer.rb
spree_api_v2-0.2.2 app/serializers/spree/image_serializer.rb
solidus_api_v2-0.2.2 app/serializers/spree/image_serializer.rb
solidus_api_v2-0.2.1 app/serializers/spree/image_serializer.rb
spree_api_v2-0.2.1 app/serializers/spree/image_serializer.rb
spree_api_v2-0.2.0 app/serializers/spree/image_serializer.rb
solidus_api_v2-0.2.0 app/serializers/spree/image_serializer.rb