Sha256: 36268044d49ff68db853125ebc573e1653c69e367d11b405d4e4da56aa006ea2

Contents?: true

Size: 260 Bytes

Versions: 2

Compression:

Stored size: 260 Bytes

Contents

module Workarea
  decorate Pricing::Discount::Shipping, with: :discount_message do
    decorated do
      include Pricing::Discount::Message
    end

    def discount_message_valid?
      order_total? && order_total_operator == :greater_than
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
workarea-shipping_message-1.2.1 app/models/workarea/pricing/discount/shipping.decorator
workarea-shipping_message-1.2.0 app/models/workarea/pricing/discount/shipping.decorator