metamaps--metamaps/app/serializers/new_user_serializer.rb
2016-03-12 09:48:07 +11:00

15 lines
256 B
Ruby

class NewUserSerializer < ActiveModel::Serializer
attributes :id,
:name,
:avatar,
:is_admin,
:generation
def avatar
object.image.url(:sixtyfour)
end
def is_admin
object.admin
end
end