mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
#11068, add ProductDeleter
This commit is contained in:
8
app/services/product_deleter.rb
Normal file
8
app/services/product_deleter.rb
Normal file
@@ -0,0 +1,8 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
# This soft deletes the product
|
||||
class ProductDeleter
|
||||
def self.delete(product)
|
||||
product.destroy
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user