class PostSerializer < BaseSerializer
  attributes :id, :title, :text, :published_at

  def id
    object.slug
  end
end

class PostSerializer < BaseSerializer
  attributes :id, :title, :text, :published_at, :author_name

  def id
    object.slug
  end
end

Add author name to the serializer
Add author name to the serializer
