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.
|
json.course_id @course.id
|
|
json.course_name @course.name
|
|
json.category do
|
|
if @category.present?
|
|
json.category_id @category.id
|
|
json.category_name @category.name
|
|
else
|
|
json.category_id @main_category&.id
|
|
json.category_name @main_category&.module_name
|
|
end
|
|
end |