Module: Spree::Admin::ProductsHelper
- Defined in:
- app/helpers/spree/admin/products_helper.rb
Instance Method Summary collapse
-
#available_status(product) ⇒ Object
will return a human readable string.
Instance Method Details
#available_status(product) ⇒ Object
will return a human readable string
5 6 7 8 9 10 11 12 13 14 |
# File 'app/helpers/spree/admin/products_helper.rb', line 5 def available_status(product) return Spree.t('admin.product.archived') if product.status == 'archived' return Spree.t('admin.product.deleted') if product.deleted? if product.available? Spree.t('admin.product.active') else Spree.t('admin.product.draft') end end |