|
|
|
@ -90,8 +90,10 @@ class HomeworkCommonsController < ApplicationController
|
|
|
|
|
|
|
|
|
|
if @homework_type == 4
|
|
|
|
|
@homework_commons = @homework_commons.includes(:homework_detail_manual, :published_settings, :shixuns)
|
|
|
|
|
elsif @homework_type == 3
|
|
|
|
|
@homework_commons = @homework_commons.includes(:homework_detail_manual, :published_settings, :homework_detail_group)
|
|
|
|
|
else
|
|
|
|
|
@homework_commons = @homework_commons.includes(:homework_detail_manual, :published_settings, :homework_detail_group)
|
|
|
|
|
@homework_commons = @homework_commons.includes(:homework_detail_manual, :published_settings)
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|