mirror of
https://github.com/discourse/discourse.git
synced 2025-02-10 05:14:59 +00:00
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
|