Sha256: 84df9ba8927c2f425c56fef2f14a9982cd0f5ecc6f334aeffe97664eb1a32472
Contents?: true
Size: 661 Bytes
Versions: 2
Compression:
Stored size: 661 Bytes
Contents
# frozen_string_literal: true json.cache! [I18n.locale, line_item] do json.(line_item, *line_item_attributes) json.single_display_amount(line_item.single_display_amount.to_s) json.display_amount(line_item.display_amount.to_s) json.total(line_item.total) json.variant do json.partial!("spree/api/variants/small", variant: line_item.variant) json.(line_item.variant, :product_id) json.images(line_item.variant.gallery.images) do |image| json.partial!("spree/api/images/image", image:) end end json.adjustments(line_item.adjustments) do |adjustment| json.partial!("spree/api/adjustments/adjustment", adjustment:) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
solidus_api-4.4.1 | app/views/spree/api/line_items/_line_item.json.jbuilder |
solidus_api-4.4.0 | app/views/spree/api/line_items/_line_item.json.jbuilder |