|
|
|
@ -90,13 +90,13 @@ class HomeworkCommonsController < ApplicationController
|
|
|
|
|
|
|
|
|
|
if @homework_type == 4
|
|
|
|
|
if @user_course_identity == Course::STUDENT
|
|
|
|
|
@homework_commons = @homework_commons.includes(:homework_detail_manual, :homework_group_settings, :shixuns,
|
|
|
|
|
@homework_commons = @homework_commons.includes(:homework_detail_manual, :published_settings, :shixuns,
|
|
|
|
|
student_works: [myshixun: [:games]])
|
|
|
|
|
else
|
|
|
|
|
@homework_commons = @homework_commons.includes(:homework_detail_manual, :homework_group_settings, :shixuns, :student_works)
|
|
|
|
|
@homework_commons = @homework_commons.includes(:homework_detail_manual, :published_settings, :shixuns, :student_works)
|
|
|
|
|
end
|
|
|
|
|
else
|
|
|
|
|
@homework_commons = @homework_commons.includes(:homework_detail_manual, :homework_group_settings, :homework_detail_group,
|
|
|
|
|
@homework_commons = @homework_commons.includes(:homework_detail_manual, :published_settings, :homework_detail_group,
|
|
|
|
|
:student_works)
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|