discourse/app/serializers/published_page_serializer.rb

10 lines
158 B
Ruby

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