discourse/app/serializers/badge_grouping_serializer.rb

10 lines
186 B
Ruby

# frozen_string_literal: true
class BadgeGroupingSerializer < ApplicationSerializer
attributes :id, :name, :description, :position, :system
def system
object.system?
end
end