2019-05-02 18:17:27 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2014-07-24 04:28:09 -04:00
|
|
|
class AdminBadgesSerializer < ApplicationSerializer
|
|
|
|
attributes :protected_system_fields, :triggers
|
|
|
|
has_many :badges, serializer: AdminBadgeSerializer
|
|
|
|
has_many :badge_groupings
|
|
|
|
has_many :badge_types
|
|
|
|
|
|
|
|
def protected_system_fields
|
|
|
|
object.protected_system_fields
|
|
|
|
end
|
|
|
|
|
|
|
|
def triggers
|
|
|
|
object.triggers
|
|
|
|
end
|
|
|
|
end
|