mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Fix spree adjustments fix that maybe never worked?
This commit is contained in:
committed by
Rob Harrington
parent
c47af55bb9
commit
bfaaf16030
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user