You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
educoder/app/views/courses/course_videos.json.jbuilder

8 lines
240 B

json.count @count
json.videos @videos, partial: 'users/videos/video', as: :video
json.course_id @course.id
if @category.present?
json.category_id @category.id
json.category_name @category.name
end
json.course_module_id @video_module&.id