|
|
@ -89,7 +89,7 @@ class HomeworkCommonsController < ApplicationController
|
|
|
|
@homework_commons = @homework_commons.page(page).per(15)
|
|
|
|
@homework_commons = @homework_commons.page(page).per(15)
|
|
|
|
|
|
|
|
|
|
|
|
if @homework_type == 4
|
|
|
|
if @homework_type == 4
|
|
|
|
@homework_commons = @homework_commons.includes(:homework_detail_manual, :published_settings, :shixuns, :student_works)
|
|
|
|
@homework_commons = @homework_commons.includes(:homework_detail_manual, :published_settings, :shixuns)
|
|
|
|
elsif @homework_type == 3
|
|
|
|
elsif @homework_type == 3
|
|
|
|
@homework_commons = @homework_commons.includes(:homework_detail_manual, :published_settings, :homework_detail_group)
|
|
|
|
@homework_commons = @homework_commons.includes(:homework_detail_manual, :published_settings, :homework_detail_group)
|
|
|
|
else
|
|
|
|
else
|
|
|
|