discourse/app/serializers/admin_badge_serializer.rb

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

20 lines
359 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class AdminBadgeSerializer < BadgeSerializer
attributes :query,
:trigger,
:target_posts,
:auto_revoke,
:show_posts,
:i18n_name,
:image_upload_id
def include_long_description?
true
end
def include_i18n_name?
object.system?
end
end