courseware
cxt 5 years ago
parent ad43667c94
commit 9475c6c35c

@ -1201,7 +1201,7 @@ class ExercisesController < ApplicationController
# 分页 # 分页
@page = params[:page] || 1 @page = params[:page] || 1
@limit = params[:limit] || 20 @limit = params[:limit] || 20
@exercise_users_list = @exercise_users_list.page(@page).per(@limit) @exercise_users_list = @exercise_users_list.preload(:exercise_user_scores, user: :user_extension).page(@page).per(@limit)
else else
@exercise_users_list = [] @exercise_users_list = []

Loading…
Cancel
Save