Class: UserSerializer

Inherits:
BaseSerializer show all
Defined in:
app/serializers/user_serializer.rb

Direct Known Subclasses

UserDetailSerializer

Instance Method Summary collapse

Methods inherited from BaseSerializer

#abilities, #cache, #can?, #current_ability, #owner?

Instance Method Details

#avatar_urlObject


4
5
6
# File 'app/serializers/user_serializer.rb', line 4

def avatar_url
  object.avatar? ? object.avatar.url(:large) : object.letter_avatar_url(240)
end