mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-19 12:02:27 -05:00
22 lines
281 B
Ruby
22 lines
281 B
Ruby
|
class TopicPostCountSerializer < BasicUserSerializer
|
||
|
|
||
|
attributes :post_count
|
||
|
|
||
|
def id
|
||
|
object[:user].id
|
||
|
end
|
||
|
|
||
|
def username
|
||
|
object[:user].username
|
||
|
end
|
||
|
|
||
|
def avatar_template
|
||
|
object[:user].avatar_template
|
||
|
end
|
||
|
|
||
|
def post_count
|
||
|
object[:post_count]
|
||
|
end
|
||
|
|
||
|
|
||
|
end
|