foodsoft/app/helpers/order_articles_helper.rb
2021-03-02 09:12:19 +01:00

6 lines
203 B
Ruby

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