Add post count to similar posts popup. Fix alignment.

This commit is contained in:
Robin Ward
2013-05-14 16:51:47 -04:00
parent 21b4b8d5d5
commit 05ed2af08f
4 changed files with 26 additions and 14 deletions

View File

@ -2,5 +2,5 @@ require_dependency 'age_words'
# The most basic attributes of a topic that we need to create a link for it.
class BasicTopicSerializer < ApplicationSerializer
attributes :id, :fancy_title, :slug
attributes :id, :fancy_title, :slug, :posts_count
end

View File

@ -3,7 +3,6 @@ require_dependency 'age_words'
class ListableTopicSerializer < BasicTopicSerializer
attributes :reply_count,
:posts_count,
:highest_post_number,
:image_url,
:created_at,