2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00
discourse/app/serializers/embeddable_host_serializer.rb

16 lines
210 B
Ruby

class EmbeddableHostSerializer < ApplicationSerializer
attributes :id, :host, :category_id
def id
object.id
end
def host
object.host
end
def category_id
object.category_id
end
end