forgeplus/app/views/courses/search_users.json.jbuilder

11 lines
295 B
Plaintext
Raw Normal View History

2020-03-09 00:40:16 +08:00
json.users do
json.array! @users do |user|
json.id user.id
json.login user.login
json.name user.real_name
json.student_id user&.student_id
json.school_name user&.school_name
json.added @course.course_member?(user.id, 4)
end
end
json.users_count @users_count