Method: Spree::Product#deleted?

Defined in:
app/models/spree/product.rb

#deleted?Boolean

Use for checking whether this product has been deleted. Provided for overriding the logic for determining if a product is deleted.

Returns:

  • (Boolean)

    true if this product is deleted



168
169
170
# File 'app/models/spree/product.rb', line 168

def deleted?
  !!deleted_at
end