Adapt product_decorator code to spree 2 where variants_including_master now makes use of Paranoi gem

This commit is contained in:
luisramos0
2018-10-20 23:43:33 +01:00
parent 32632addfb
commit 92c7db2249

View File

@@ -215,7 +215,7 @@ Spree::Product.class_eval do
self.supplier.touch
touch_distributors
ExchangeVariant.where('exchange_variants.variant_id IN (?)', self.variants_including_master_and_deleted).destroy_all
ExchangeVariant.where('exchange_variants.variant_id IN (?)', self.variants_including_master.with_deleted).destroy_all
delete_without_delete_from_order_cycles
end