foodcoop-adam/foodsoft

View on GitHub
app/helpers/order_articles_helper.rb

Summary

Maintainability
A
0 mins
Test Coverage
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