discourse/app/serializers/user_badges_serializer.rb

5 lines
133 B
Ruby

class UserBadgesSerializer < ApplicationSerializer
has_many :user_badges, embed: :objects
attributes :grant_count, :username
end