discourse/app/serializers/topic_post_count_serializer.rb
2013-02-07 16:45:24 +01:00

22 lines
282 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