discourse/app/serializers/admin_badges_serializer.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
355 B
Ruby
Raw Normal View History

# frozen_string_literal: true
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