Add ability to give users a title. Show them under usernames beside posts. Needs love from a designer.

This commit is contained in:
Neil Lalonde
2013-06-25 18:39:20 -04:00
parent a86b35c873
commit b2d300fe0b
12 changed files with 93 additions and 2 deletions

View File

@@ -33,6 +33,7 @@ class PostSerializer < ApplicationSerializer
:read,
:username,
:name,
:user_title,
:reply_to_user,
:bookmarked,
:raw,
@@ -128,6 +129,10 @@ class PostSerializer < ApplicationSerializer
object.user.name
end
def user_title
object.user.title
end
def trust_level
object.user.trust_level
end