foodsoft/app/helpers/stockit_helper.rb
2012-10-29 18:28:17 +01:00

7 lines
183 B
Ruby

module StockitHelper
def stock_article_classes(article)
class_names = []
class_names << "unavailable" if article.quantity_available <= 0
class_names.join(" ")
end
end