mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
8 lines
154 B
Ruby
8 lines
154 B
Ruby
class ExchangeVariantDeleter
|
|
def delete(product)
|
|
ExchangeVariant.
|
|
where(variant_id: product.variants.select(:id)).
|
|
delete_all
|
|
end
|
|
end
|