Class: GroupPostUserSerializer

Inherits:
BasicUserSerializer show all
Defined in:
app/serializers/group_post_user_serializer.rb

Instance Method Summary collapse

Methods inherited from BasicUserSerializer

#avatar_template, #categories_with_notification_level, #category_user_notification_levels, #include_name?, #name, #user, #user_is_current_user

Methods inherited from ApplicationSerializer

expire_cache_fragment!, fragment_cache

Methods inherited from ActiveModel::Serializer

#include!

Instance Method Details

#primary_group_nameObject



6
7
8
# File 'app/serializers/group_post_user_serializer.rb', line 6

def primary_group_name
  object.primary_group.name if object.primary_group
end