mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-04 15:24:23 +01:00
14 lines
500 B
Plaintext
14 lines
500 B
Plaintext
|
json.extract! admin, :id, :username, :email, :group_id, :slug
|
||
|
json.profile_attributes do
|
||
|
json.id admin.profile.id
|
||
|
json.first_name admin.profile.first_name
|
||
|
json.last_name admin.profile.last_name
|
||
|
json.gender admin.profile.gender
|
||
|
json.birthday admin.profile.birthday if admin.profile.birthday
|
||
|
json.phone admin.profile.phone
|
||
|
json.user_avatar do
|
||
|
json.id admin.profile.user_avatar.id
|
||
|
json.attachment_url admin.profile.user_avatar.attachment_url
|
||
|
end if admin.profile.user_avatar
|
||
|
end
|