diff --git a/app/views/hacks/edit.json.jbuilder b/app/views/hacks/edit.json.jbuilder index e6fee65b8..8e58569bc 100644 --- a/app/views/hacks/edit.json.jbuilder +++ b/app/views/hacks/edit.json.jbuilder @@ -1,5 +1,8 @@ # 编程内容 -json.(@hack, :name, :description, :language, :difficult, :category, :time_limit, :open_or_not, :status) +json.(@hack, :name, :description, :language, :difficult, :category, :time_limit, :open_or_not, :status, :sub_discipline_id) + +# 课程 +json.tag_discipline_id @hack.tag_discipline_containers.pluck(:tag_discipline_id) # 代码 json.language @hack.language