mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-05 22:26:07 +00:00
Fix Rails/HasManyOrHasOneDependent with nil
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user