Class: Alchemy::Ingredients::SpreeTaxon

Inherits:
Alchemy::Ingredient
  • Object
show all
Defined in:
app/models/alchemy/ingredients/spree_taxon.rb

Instance Method Summary collapse

Instance Method Details

#preview_text(maxlength) ⇒ Object



8
9
10
11
12
# File 'app/models/alchemy/ingredients/spree_taxon.rb', line 8

def preview_text(maxlength)
  return unless taxon

  taxon.name[0..maxlength - 1]
end