2013-02-05 14:16:51 -05:00
|
|
|
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
|
|
|
|
|
|
|
|
|
2013-02-07 10:45:24 -05:00
|
|
|
end
|