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.
14 lines
545 B
14 lines
545 B
# json.member_attendances @member_attendances.each do |member|
|
|
# json.(member, :user_id, :attendance_status)
|
|
# json.user_name member.user&.real_name
|
|
# json.student_id member.user&.student_id
|
|
# end
|
|
|
|
json.member_attendances @members.each do |member|
|
|
json.(member, :user_id)
|
|
json.user_name member.user&.real_name
|
|
json.student_id member.user&.student_id
|
|
json.attendance_status @member_attendances.select{|attendance| attendance.course_member_id == member.id}.first&.attendance_status || "ABSENCE"
|
|
end
|
|
|
|
json.members_count @members_count |