Sha256: bfcc8bb185695b72f1281882d7dd34bcc25662838daec975eda7263534ee8743
Contents?: true
Size: 569 Bytes
Versions: 45
Compression:
Stored size: 569 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 self.description Spree.t(:free_shipping) end 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
45 entries across 45 versions & 1 rubygems