User the BasicUserSerializer for the invited user

This commit is contained in:
Robin Ward 2013-05-21 12:03:51 -04:00
parent 046e6e5d86
commit 45361934b9

View file

@ -12,11 +12,11 @@ class UserSerializer < BasicUserSerializer
:stats, :stats,
:can_send_private_message_to_user, :can_send_private_message_to_user,
:bio_excerpt, :bio_excerpt,
:invited_by,
:trust_level, :trust_level,
:moderator, :moderator,
:admin :admin
has_one :invited_by, embed: :object, serializer: BasicUserSerializer
def self.private_attributes(*attrs) def self.private_attributes(*attrs)
attributes *attrs attributes *attrs