discourse/app/serializers/badge_serializer.rb
Sam ec03d135fa FEATURE: allow advanced badge options in admin screen
clean up serializer, allow simplistic preview
2014-07-24 18:28:23 +10:00

10 lines
277 B
Ruby

class BadgeSerializer < ApplicationSerializer
attributes :id, :name, :description, :grant_count, :allow_title,
:multiple_grant, :icon, :listable, :enabled, :badge_grouping_id,
:system
has_one :badge_type
def system
object.system?
end
end