module Sprangular
  class TaxonomySerializer < BaseSerializer
    attributes :id, :name

    has_one :root, embed: :objects,
                   serializer: Sprangular::TaxonSerializer
  end
end

module Sprangular
  class TaxonomySerializer < BaseSerializer
    attributes *taxonomy_attributes

    has_one :root, embed: :objects,
                   serializer: Sprangular::TaxonSerializer
  end
end

Allow the taxonomy attributes to be overridden in host app
Allow the taxonomy attributes to be overridden in host app
