discourse/app/serializers/user_badges_serializer.rb

5 lines
133 B
Ruby
Raw Normal View History

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