题库调整

yslnewtiku
cxt 5 years ago
parent fc441cde2f
commit 0d9d1eaf63

@ -1,10 +1,10 @@
json.repertoire do
json.(@item.sub_repertoire&.repertoire, :id, :name)
json.discipline do
json.(@item.sub_discipline&.discipline, :id, :name)
end
json.sub_repertoire do
json.(@item.sub_repertoire, :id, :name)
json.sub_discipline do
json.(@item.sub_discipline, :id, :name)
end
json.tag_repertoires @item.tag_repertoires do |tag|
json.tag_disciplines @item.tag_disciplines do |tag|
json.(tag, :id, :name)
end
json.(@item, :id, :name, :item_type, :difficulty)

Loading…
Cancel
Save