mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-18 11:32:24 -05:00
11 lines
279 B
Ruby
11 lines
279 B
Ruby
|
class InvitedListSerializer < ApplicationSerializer
|
||
|
|
||
|
has_many :pending, serializer: InviteSerializer, embed: :objects
|
||
|
has_many :redeemed, serializer: InviteSerializer, embed: :objects
|
||
|
|
||
|
|
||
|
def include_pending?
|
||
|
scope.can_see_pending_invites_from?(object.by_user)
|
||
|
end
|
||
|
end
|