json.array! @inventory_definitions, partial: 'inventory_definitions/inventory_definition', as: :inventory_definition