foodsoft/app/serializers/stock_article_serializer.rb

8 lines
137 B
Ruby
Raw Normal View History

2018-10-13 16:21:37 +02:00
class StockArticleSerializer < ArticleSerializer
attribute :quantity_available
def quantity_available
object.quantity
end
end