Class: ArticleSerializer

Inherits:
ActiveModel::Serializer
  • Object
show all
Defined in:
app/serializers/article_serializer.rb

Direct Known Subclasses

StockArticleSerializer

Instance Method Summary collapse

Instance Method Details

#supplier_nameObject



6
7
8
# File 'app/serializers/article_serializer.rb', line 6

def supplier_name
  object.supplier.try(:name)
end