From 51f976b9548f2d685df335e124870b6c38ee30a2 Mon Sep 17 00:00:00 2001 From: cxt <853663049@qq.com> Date: Mon, 2 Dec 2019 11:38:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E4=B8=BB=E9=A1=B5=E8=AF=BE?= =?UTF-8?q?=E5=A0=82=E7=9A=84=E5=AD=A6=E6=A0=A1=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/users/courses/shared/_course.json.jbuilder | 1 + 1 file changed, 1 insertion(+) diff --git a/app/views/users/courses/shared/_course.json.jbuilder b/app/views/users/courses/shared/_course.json.jbuilder index 8da80f372..a0c5ddc73 100644 --- a/app/views/users/courses/shared/_course.json.jbuilder +++ b/app/views/users/courses/shared/_course.json.jbuilder @@ -6,6 +6,7 @@ json.members_count course.course_members_count json.homework_commons_count get_tasks_count course json.attachments_count course.attachments.count json.visits course.visits +json.school course.school&.name json.first_category_url module_url(course.course_modules.where(hidden: 0).order(position: :desc).first, course)