discourse/app/serializers/topic_post_count_serializer.rb

22 lines
287 B
Ruby
Raw Normal View History

2013-02-05 13:16:51 -06:00
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
def uploaded_avatar_id
object[:user].uploaded_avatar_id
end
2013-02-05 13:16:51 -06:00
2013-02-07 09:45:24 -06:00
end