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/teachers/index.json.jbuilder

9 lines
301 B

json.teachers do
json.array! @teachers.each do |teacher|
json.id teacher.id
json.name teacher.full_name
json.identity teacher.identity
json.school_name teacher.school_name
json.enrollable !current_competition.teacher_multiple_limited? || !@enrolled_map.key?(teacher.id)
end
end