mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-30 19:08:10 -05:00
ec03d135fa
clean up serializer, allow simplistic preview
10 lines
277 B
Ruby
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
|