discourse/app/serializers/user_badges_serializer.rb

7 lines
164 B
Ruby

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