FIX: hide category column in topic list only when the current category has no children

This commit is contained in:
Régis Hanol
2015-09-02 23:46:04 +02:00
parent 0cd393f310
commit d34f42d2f7
4 changed files with 9 additions and 8 deletions
+2 -1
View File
@@ -17,7 +17,8 @@ class BasicCategorySerializer < ApplicationSerializer
:logo_url,
:background_url,
:can_edit,
:topic_template
:topic_template,
:has_children
def include_parent_category_id?
parent_category_id