courseware
daiao 5 years ago
parent c362b83d8c
commit 188d61a654

@ -119,6 +119,7 @@ class CoursesController < ApplicationController
.or(videos.where(videos: {user_id: current_user.id})) .or(videos.where(videos: {user_id: current_user.id}))
.or(videos.where(course_videos: {is_link: true})) .or(videos.where(course_videos: {is_link: true}))
@count = videos.count @count = videos.count
logger.info("#######count:#{@count}")
@videos = paginate videos @videos = paginate videos
end end

Loading…
Cancel
Save