From 39f0811f0ae18730f61d8d7c9f4d5a347d9b7fab Mon Sep 17 00:00:00 2001 From: "vilet.yy" Date: Fri, 19 Mar 2021 14:58:25 +0800 Subject: [PATCH] fix:simple unit --- app/views/projects/project_units/index.json.jbuilder | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/views/projects/project_units/index.json.jbuilder b/app/views/projects/project_units/index.json.jbuilder index e88393876..73a558a78 100644 --- a/app/views/projects/project_units/index.json.jbuilder +++ b/app/views/projects/project_units/index.json.jbuilder @@ -1,3 +1 @@ -json.array! @project_units do |unit| - json.type unit.unit_type -end \ No newline at end of file +json.array! @project_units.pluck(:unit_type) \ No newline at end of file