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/ecs/course_targets/shared/_course_target.json.jbuilder

9 lines
379 B

6 years ago
json.extract! ec_course_target, :id, :position, :content, :standard_grade, :weight
json.graduation_subitem do
graduation_subitem = ec_course_target.ec_graduation_subitems.take
json.partial! 'ecs/shared/ec_graduation_subitem', ec_graduation_subitem: graduation_subitem
json.graduation_requirement_position graduation_subitem.ec_graduation_requirement.position
end