mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 18:48:33 +08:00
71f211f0b3
user card
11 lines
285 B
Ruby
11 lines
285 B
Ruby
class BadgeSerializer < ApplicationSerializer
|
|
attributes :id, :name, :description, :grant_count, :allow_title,
|
|
:multiple_grant, :icon, :image, :listable, :enabled, :badge_grouping_id,
|
|
:system
|
|
has_one :badge_type
|
|
|
|
def system
|
|
object.system?
|
|
end
|
|
end
|