|
|
|
@ -4,9 +4,11 @@ json.course_modules do
|
|
|
|
|
json.id course_module.id
|
|
|
|
|
json.module_name course_module.module_name
|
|
|
|
|
json.course_second_categories course_module.first_categories do |category|
|
|
|
|
|
json.(category, :id, :name)
|
|
|
|
|
json.course_third_categories category.children do |child|
|
|
|
|
|
json.(child, :id, :name)
|
|
|
|
|
json.title category.name
|
|
|
|
|
json.value category.id
|
|
|
|
|
json.children category.children do |child|
|
|
|
|
|
json.title child.name
|
|
|
|
|
json.value child.id
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|