```ruby
module Sprangular
  class TaxonSerializer < BaseSerializer
    attributes :id, :name, :pretty_name, :permalink, :parent_id, :taxonomy_id

    has_many :children, key: :taxons, serializer: self
  end
end
```

Use default attributes which allows for easier overriding
user
```ruby
module Sprangular
  class TaxonSerializer < BaseSerializer
    attributes *taxon_attributes

    has_many :children, key: :taxons, serializer: self
  end
end
```
assistant