Fix spree adjustments fix that maybe never worked?

This commit is contained in:
Rohan Mitchell
2016-12-23 15:08:12 +11:00
committed by Rob Harrington
parent c47af55bb9
commit bfaaf16030

View File

@@ -40,7 +40,7 @@ Spree::PaymentMethod.class_eval do
def init
unless reflections.keys.include? :calculator
include Spree::Core::CalculatedAdjustments
self.class.include Spree::Core::CalculatedAdjustments
end
self.calculator ||= Spree::Calculator::FlatRate.new(preferred_amount: 0)