foodsoft/app/helpers/stockit_helper.rb

8 lines
183 B
Ruby
Raw Normal View History

2009-01-18 17:42:51 +01:00
module StockitHelper
2012-10-29 18:28:17 +01:00
def stock_article_classes(article)
class_names = []
class_names << "unavailable" if article.quantity_available <= 0
class_names.join(" ")
end
2009-01-18 17:42:51 +01:00
end