mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 20:00:49 +08:00
4 lines
223 B
Ruby
4 lines
223 B
Ruby
json.(@course, :id, :name, :course_members_count, :credit, :invite_code_halt)
|
|
json.teachers_count @course.teachers.count
|
|
json.students_count @course.students.count
|
|
json.course_identity @current_user.course_identity(@course) |