mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 04:13:22 +08:00
ec03d135fa
clean up serializer, allow simplistic preview
11 lines
277 B
Ruby
11 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
|