foodsoft/app/helpers/order_articles_helper.rb

7 lines
203 B
Ruby
Raw Permalink Normal View History

module OrderArticlesHelper
2014-02-24 11:37:06 +01:00
def article_label_with_unit(article)
pkg_info = pkg_helper(article, plain: true)
"#{article.name} (#{[article.unit, pkg_info].reject(&:blank?).join(' ')})"
end
2012-06-21 17:19:00 +02:00
end