PERF: Show excerpt on group page.

This commit is contained in:
Guo Xiang Tan
2016-12-05 18:12:24 +08:00
parent 965b38ff2a
commit cdb7e14fa7
3 changed files with 7 additions and 27 deletions

View File

@ -1,5 +1,5 @@
class BasicUserSerializer < ApplicationSerializer
attributes :id, :username, :avatar_template
attributes :id, :username, :avatar_template, :title, :name
def include_name?
SiteSetting.enable_names?