Sha256: 43fc978a505d6818291d28b1e997f4e31a5386882d0c26f344604cca7638b480

Contents?: true

Size: 707 Bytes

Versions: 4

Compression:

Stored size: 707 Bytes

Contents

# frozen_string_literal: true

object @line_item
cache [I18n.locale, root_object]
attributes *line_item_attributes
node(:single_display_amount) { |li| li.single_display_amount.to_s }
node(:display_amount) { |li| li.display_amount.to_s }
node(:total, &:total)
glue variant: :parts do
  glue :product do
    child parts: :parts do
      extends "spree/api/variants/small"
      attributes :product_id

      child(images: :images) { extends "spree/api/images/show" }
    end
  end
end
child :variant do
  extends "spree/api/variants/small"
  attributes :product_id
  child(images: :images) { extends "spree/api/images/show" }
end

child adjustments: :adjustments do
  extends "spree/api/adjustments/show"
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
solidus_product_assembly-1.4.0 app/views/spree/api/line_items/show.v1.rabl
solidus_product_assembly-1.3.0 app/views/spree/api/line_items/show.v1.rabl
solidus_product_assembly-1.2.0 app/views/spree/api/line_items/show.v1.rabl
solidus_product_assembly-1.1.0 app/views/spree/api/line_items/show.v1.rabl