mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 01:50:41 +08:00
12 lines
179 B
Ruby
12 lines
179 B
Ruby
|
class PenaltyCountsSerializer < ApplicationSerializer
|
||
|
attributes :silenced, :suspended
|
||
|
|
||
|
def silenced
|
||
|
object.silenced
|
||
|
end
|
||
|
|
||
|
def suspended
|
||
|
object.suspended
|
||
|
end
|
||
|
end
|