glyph in secure categories to the right, like pms

This commit is contained in:
Sam
2013-05-16 16:55:07 +10:00
parent eb71e9de24
commit 7e1c5ae5b7
4 changed files with 18 additions and 2 deletions

View File

@@ -8,6 +8,7 @@ class BasicCategorySerializer < ApplicationSerializer
:topic_count,
:description,
:topic_url,
:hotness
:hotness,
:secure
end

View File

@@ -128,6 +128,7 @@ class TopicViewSerializer < ApplicationSerializer
def categoryName
object.topic.category.name
end
def include_categoryName?
object.topic.category.present?
end