实训作业首页问题

dev_course
daiao 6 years ago
parent 6264af3263
commit 4649569357

@ -89,10 +89,9 @@ 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)
else else
@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)
:student_works)
end end
end end

Loading…
Cancel
Save