Fix Rubocop: Do not delete dependent adjustments

TaxRate acts_as_paranoid iand is thus not hard_deleted
This commit is contained in:
Anthony Musyoki
2024-03-26 09:54:51 +03:00
parent 4f851bbe1f
commit 4140257fa1

View File

@@ -21,7 +21,7 @@ module Spree
belongs_to :zone, class_name: "Spree::Zone", inverse_of: :tax_rates
belongs_to :tax_category, class_name: "Spree::TaxCategory", inverse_of: :tax_rates
has_many :adjustments, as: :originator
has_many :adjustments, as: :originator, dependent: nil
validates :amount, presence: true, numericality: true
validates :tax_category, presence: true