foodsoft/app/helpers/stockit_helper.rb
2013-02-25 10:29:47 +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