discourse/app/serializers/admin_badge_serializer.rb

14 lines
263 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class AdminBadgeSerializer < BadgeSerializer
attributes :query, :trigger, :target_posts, :auto_revoke, :show_posts, :i18n_name
def include_long_description?
2017-07-27 20:20:09 -05:00
true
end
def include_i18n_name?
object.system?
end
end