2018-10-10 13:00:08 -04:00
|
|
|
class HiddenProfileSerializer < BasicUserSerializer
|
2018-11-14 09:55:38 -05:00
|
|
|
attributes(
|
|
|
|
:profile_hidden?,
|
|
|
|
:title,
|
|
|
|
:primary_group_name
|
|
|
|
)
|
2018-10-10 13:00:08 -04:00
|
|
|
|
|
|
|
def profile_hidden?
|
|
|
|
true
|
|
|
|
end
|
2018-11-14 09:55:38 -05:00
|
|
|
|
|
|
|
def primary_group_name
|
|
|
|
object.primary_group.try(:name)
|
|
|
|
end
|
2018-10-10 13:00:08 -04:00
|
|
|
end
|