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