mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 16:41:18 +08:00
8 lines
187 B
Ruby
8 lines
187 B
Ruby
class UserBadgeSerializer < ApplicationSerializer
|
|
attributes :id, :granted_at
|
|
|
|
has_one :user
|
|
has_one :badge
|
|
has_one :granted_by, serializer: BasicUserSerializer, root: :users
|
|
end
|