Module: OrderArticlesHelper

Defined in:
app/helpers/order_articles_helper.rb

Instance Method Summary collapse

Instance Method Details

#article_label_with_unit(article) ⇒ Object


3
4
5
6
# File 'app/helpers/order_articles_helper.rb', line 3

def (article)
  pkg_info = pkg_helper(article, plain: true)
  "#{article.name} (#{[article.unit, pkg_info].reject(&:blank?).join(' ')})"
end