Sha256: 63ccf270ce02ef91fa480c82406110af5bf568544d06803710d496347601d483
Contents?: true
Size: 304 Bytes
Versions: 5
Compression:
Stored size: 304 Bytes
Contents
# frozen_string_literal: true module SolidusFriendlyPromotions module Actions class AdjustShipment < PromotionAction def can_discount?(object) object.is_a?(Spree::Shipment) || object.is_a?(Spree::ShippingRate) end def level :shipment end end end end
Version data entries
5 entries across 5 versions & 1 rubygems