Move decorator's callbacks to model

This commit is contained in:
Pau Perez
2020-06-26 18:03:53 +02:00
parent eafaa97b0e
commit 322c4d0f3f
2 changed files with 1 additions and 3 deletions

View File

@@ -18,7 +18,7 @@ module Spree
after_save :create_payment_profile, if: :profiles_supported?
# update the order totals, etc.
after_save :update_order
after_save :ensure_correct_adjustment, :update_order
# invalidate previously entered payments
after_create :invalidate_old_payments

View File

@@ -8,8 +8,6 @@ module Spree
has_one :adjustment, as: :source, dependent: :destroy
after_save :ensure_correct_adjustment, :update_order
localize_number :amount
# We bypass this after_rollback callback that is setup in Spree::Payment