discourse-ai/app/serializers/ai_chat_channel_serializer.rb

12 lines
291 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class AiChatChannelSerializer < ApplicationSerializer
attributes :id, :chatable, :chatable_type, :chatable_url, :slug
def title
# Display all participants for a DM.
# For category channels, the argument is ignored.
object.title(nil)
end
end