discourse/app/serializers/badge_grouping_serializer.rb

8 lines
155 B
Ruby

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