|
|
|
@ -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
|
|
|
|
|
|
|
|
|
|