mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-29 21:17:17 +00:00
Add extra fields to taxon serializer to be used in the api
This commit is contained in:
@@ -2,7 +2,7 @@ class Api::TaxonSerializer < ActiveModel::Serializer
|
||||
cached
|
||||
delegate :cache_key, to: :object
|
||||
|
||||
attributes :id, :name, :permalink, :icon
|
||||
attributes :id, :name, :permalink, :icon, :pretty_name, :position, :parent_id, :taxonomy_id
|
||||
|
||||
def icon
|
||||
object.icon(:original)
|
||||
|
||||
Reference in New Issue
Block a user