mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-09 23:06:06 +00:00
Tidy up CalculatedAdjustments in Spree::PaymentMethod
This commit is contained in:
@@ -93,10 +93,6 @@ module Spree
|
||||
end
|
||||
|
||||
def init
|
||||
unless _reflections.key?(:calculator)
|
||||
self.class.include Spree::Core::CalculatedAdjustments
|
||||
end
|
||||
|
||||
self.calculator ||= ::Calculator::FlatRate.new(preferred_amount: 0)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user