mirror of
https://github.com/discourse/discourse.git
synced 2024-12-12 02:03:40 +08:00
0a5f548635
As part of this move, we are also renaming `discourse-chat` to `chat`.
10 lines
205 B
Ruby
10 lines
205 B
Ruby
# frozen_string_literal: true
|
|
|
|
class ChatChannelSearchSerializer < StructuredChannelSerializer
|
|
has_many :users, serializer: BasicUserSerializer, embed: :objects
|
|
|
|
def users
|
|
object[:users]
|
|
end
|
|
end
|