Method: ShopifyAPI::CustomCollection#remove_product

Defined in:
lib/shopify_api/resources/custom_collection.rb

#remove_product(product) ⇒ Object



15
16
17
18
# File 'lib/shopify_api/resources/custom_collection.rb', line 15

def remove_product(product)
  collect = Collect.find(:first, params: { collection_id: self.id, product_id: product.id })
  collect.destroy if collect
end