You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
educoder/app/views/competitions/students/index.json.jbuilder

9 lines
304 B

5 years ago
json.teachers do
json.array! @students.each do |student|
json.id student.id
json.name student.full_name
json.student_id student.student_id
json.school_name student.school_name
json.enrollable !current_competition.member_multiple_limited? || !@enrolled_map.key?(student.id)
end
end