discourse/app/serializers/penalty_counts_serializer.rb

12 lines
179 B
Ruby
Raw Normal View History

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