|
|
|
@ -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)
|
|
|
|
|