Fix Rails/HasManyOrHasOneDependent with nil

This commit is contained in:
Neal Chambers
2023-09-21 23:24:48 +09:00
parent e49489cd1c
commit cf07a055d0

View File

@@ -16,7 +16,7 @@ module Spree
has_many :shipping_rates, inverse_of: :shipping_method, dependent: :destroy
has_many :shipments, through: :shipping_rates
has_many :shipping_method_categories, dependent: :destroy
has_many :shipping_categories, through: :shipping_method_categories, dependent: :destroy
has_many :shipping_categories, through: :shipping_method_categories, dependent: nil
has_many :distributor_shipping_methods, dependent: :destroy
has_many :distributors, through: :distributor_shipping_methods,
class_name: 'Enterprise',