Sha256: 6da805df57189fd5eed70f6f415a529ccbc850be33621a8c51cc0333896c1c2e

Contents?: true

Size: 166 Bytes

Versions: 2

Compression:

Stored size: 166 Bytes

Contents

module Workarea
  decorate Pricing::Request, with: :gift_wrap do
    private

    def all_skus
      super + order.items.flat_map(&:gift_wrap_skus)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
workarea-gift_wrapping-1.3.0 app/models/workarea/pricing/request.decorator
workarea-gift_wrapping-1.2.1 app/models/workarea/pricing/request.decorator