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

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

module Sprangular
  class TaxonSerializer < BaseSerializer
    attributes *taxon_attributes

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

Use default attributes which allows for easier overriding
Use default attributes which allows for easier overriding