User the BasicUserSerializer for the invited user
This commit is contained in:
parent
046e6e5d86
commit
45361934b9
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue