mirror of
https://github.com/discourse/discourse.git
synced 2024-12-24 06:13:47 +08:00
16 lines
346 B
Ruby
16 lines
346 B
Ruby
# frozen_string_literal: true
|
|
|
|
class InviteLinkSerializer < ApplicationSerializer
|
|
attributes :id,
|
|
:invite_key,
|
|
:created_at,
|
|
:max_redemptions_allowed,
|
|
:redemption_count,
|
|
:expires_at,
|
|
:group_names
|
|
|
|
def group_names
|
|
object.groups.pluck(:name).join(", ")
|
|
end
|
|
end
|