Class: Alchemy::Ingredients::SpreeProduct
- Inherits:
-
Alchemy::Ingredient
- Object
- Alchemy::Ingredient
- Alchemy::Ingredients::SpreeProduct
- Defined in:
- app/models/alchemy/ingredients/spree_product.rb
Instance Method Summary collapse
Instance Method Details
#preview_text(maxlength) ⇒ Object
8 9 10 11 12 |
# File 'app/models/alchemy/ingredients/spree_product.rb', line 8 def preview_text(maxlength) return unless product product.name[0..maxlength - 1] end |