From 188d61a654f6fdfa2926b8bc1929da4da13ca944 Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Sat, 14 Mar 2020 18:49:53 +0800 Subject: [PATCH] 1 --- app/controllers/courses_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/courses_controller.rb b/app/controllers/courses_controller.rb index baf522848..71b6733db 100644 --- a/app/controllers/courses_controller.rb +++ b/app/controllers/courses_controller.rb @@ -119,6 +119,7 @@ class CoursesController < ApplicationController .or(videos.where(videos: {user_id: current_user.id})) .or(videos.where(course_videos: {is_link: true})) @count = videos.count + logger.info("#######count:#{@count}") @videos = paginate videos end