From 0d9d1eaf63c95067fda57b945cb40eaab89648bd Mon Sep 17 00:00:00 2001 From: cxt <853663049@qq.com> Date: Thu, 26 Dec 2019 09:19:18 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A2=98=E5=BA=93=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/item_banks/edit.json.jbuilder | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/views/item_banks/edit.json.jbuilder b/app/views/item_banks/edit.json.jbuilder index 569a2cb86..5d67aa066 100644 --- a/app/views/item_banks/edit.json.jbuilder +++ b/app/views/item_banks/edit.json.jbuilder @@ -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)