mirror of
https://ghfast.top/https://github.com/discourse/discourse-ai.git
synced 2026-07-16 11:36:23 +08:00
11 lines
291 B
Ruby
11 lines
291 B
Ruby
# 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
|