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/item_banks/edit.json.jbuilder

15 lines
425 B

5 years ago
json.repertoire do
json.(@item.sub_repertoire&.repertoire, :id, :name)
end
json.sub_repertoire do
json.(@item.sub_repertoire, :id, :name)
end
json.tag_repertoires @item.tag_repertoires do |tag|
json.(tag, :id, :name)
end
json.(@item, :id, :name, :item_type, :difficulty)
json.analysis @item.analysis
json.choices @item.item_choices do |choice|
json.choice_text choice.choice_text
json.is_answer choice.is_answer
end