|
|
@ -1,7 +1,7 @@
|
|
|
|
json.candidates do
|
|
|
|
json.candidates do
|
|
|
|
json.array! @users do |user|
|
|
|
|
json.array! @users do |user|
|
|
|
|
json.id user.id
|
|
|
|
json.id user.id
|
|
|
|
json.name user.firstname + user.lastname
|
|
|
|
json.name user.real_name
|
|
|
|
json.nickname user.nickname
|
|
|
|
json.nickname user.nickname
|
|
|
|
json.school_name user.user_extension.school.try(:name)
|
|
|
|
json.school_name user.user_extension.school.try(:name)
|
|
|
|
json.school_id user.user_extension.school.try(:id)
|
|
|
|
json.school_id user.user_extension.school.try(:id)
|
|
|
|