mirror of
https://github.com/discourse/discourse.git
synced 2024-12-15 23:03:48 +08:00
93f9dcfcec
FIX: remove unecessary serialized fields
18 lines
218 B
Ruby
18 lines
218 B
Ruby
class TopicPostCountSerializer < BasicUserSerializer
|
|
|
|
attributes :post_count
|
|
|
|
def id
|
|
object[:user].id
|
|
end
|
|
|
|
def username
|
|
object[:user].username
|
|
end
|
|
|
|
def post_count
|
|
object[:post_count]
|
|
end
|
|
|
|
end
|