Sha256: 8d7e80e1ef30190dec1b33faf7bf878f0efbc135177a197929ae59685f41e2cb

Contents?: true

Size: 188 Bytes

Versions: 2

Compression:

Stored size: 188 Bytes

Contents

module Workarea
  decorate Storefront::CartViewModel, with: :global_e do
    def total_adjustments
      model.price_adjustments.adjusting("order").group_discounts_by_id
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
workarea-global_e-1.3.0 app/view_models/workarea/storefront/cart_view_model.decorator
workarea-global_e-1.2.1 app/view_models/workarea/storefront/cart_view_model.decorator