work in progress wide category list

This commit is contained in:
Sam
2013-10-17 17:44:56 +11:00
parent 7bf96ee690
commit 1ee49798b2
17 changed files with 200 additions and 25 deletions

View File

@@ -6,6 +6,7 @@ class CategoryDetailedSerializer < ApplicationSerializer
:text_color,
:slug,
:topic_count,
:post_count,
:topics_week,
:topics_month,
:topics_year,

View File

@@ -19,6 +19,12 @@ class ListableTopicSerializer < BasicTopicSerializer
:closed,
:archived
has_one :last_poster, serializer: BasicUserSerializer, embed: :objects
def include_associations!
include! :last_poster if object.include_last_poster
end
def bumped
object.created_at < object.bumped_at
end