Sha256: 47e3234f14f62314391b6577f6f793d156f2e1e8c4dc42f0b208807313814599
Contents?: true
Size: 383 Bytes
Versions: 2
Compression:
Stored size: 383 Bytes
Contents
module Workarea decorate Storefront::OrderViewModel, with: :product_bundles do decorated do include Storefront::ItemBundles end def items @items_without_bundles ||= super.reject(&:bundle?) end def bundled_items @bundled_items ||= model.bundled_items.map do |item| Storefront::OrderItemViewModel.new(item) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems