Sha256: 3618f9711f2928c72e62c6e7e51c6197ed4babb3d1ef12aa81fe09707504ce34
Contents?: true
Size: 506 Bytes
Versions: 9
Compression:
Stored size: 506 Bytes
Contents
module Spree # @deprecated This calculator will be removed in future versions of Spree. # The only case where it was used was for Free Shipping Promotions. There is # now a Promotion Action which deals with these types of promotions instead. class Calculator::FreeShipping < Calculator def compute(object) if object.is_a?(Array) return if object.empty? order = object.first.order else order = object end order.ship_total end end end
Version data entries
9 entries across 9 versions & 1 rubygems