From 7493697955828ff2568686dcdff8d1c800cae270 Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Sat, 24 Jul 2021 16:22:13 +0100 Subject: [PATCH] Tidy up CalculatedAdjustments in Spree::PaymentMethod --- app/models/spree/payment_method.rb | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app/models/spree/payment_method.rb b/app/models/spree/payment_method.rb index 50ea9da5e0..26eec433a0 100644 --- a/app/models/spree/payment_method.rb +++ b/app/models/spree/payment_method.rb @@ -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