This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/serializers/badge_grouping_serializer.rb
Gerhard Schlager 8517674a32 UX: Show translated badge names and badge groupings
FIX: Disallow renaming of system badges
FIX: Disallow renaming/deleting of system badge groupings
UX: Use "modern" button style in badge groupings dialog
2015-12-30 23:35:16 +01:00

8 lines
155 B
Ruby

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