discourse/app/serializers/penalty_counts_serializer.rb

12 lines
179 B
Ruby

class PenaltyCountsSerializer < ApplicationSerializer
attributes :silenced, :suspended
def silenced
object.silenced
end
def suspended
object.suspended
end
end