mirror of
https://github.com/discourse/discourse.git
synced 2024-12-25 07:23:52 +08:00
0a5f548635
As part of this move, we are also renaming `discourse-chat` to `chat`.
15 lines
389 B
Ruby
15 lines
389 B
Ruby
# frozen_string_literal: true
|
|
|
|
class AdminChatIndexSerializer < ApplicationSerializer
|
|
has_many :chat_channels, serializer: ChatChannelSerializer, embed: :objects
|
|
has_many :incoming_chat_webhooks, serializer: IncomingChatWebhookSerializer, embed: :objects
|
|
|
|
def chat_channels
|
|
object[:chat_channels]
|
|
end
|
|
|
|
def incoming_chat_webhooks
|
|
object[:incoming_chat_webhooks]
|
|
end
|
|
end
|