discourse/app/serializers/published_page_serializer.rb

10 lines
149 B
Ruby

# frozen_string_literal: true
class PublishedPageSerializer < ApplicationSerializer
attributes :id, :slug
def id
object.topic_id
end
end