Minorly update inventory_column_serializer so tests pass

This commit is contained in:
Luka Murn 2018-10-11 09:49:54 +02:00
parent 2f99904000
commit c11345d6a1

View file

@ -8,12 +8,6 @@ module Api
has_many :repository_list_items, key: :inventory_list_items,
serializer: InventoryListItemSerializer,
class_name: 'RepositoryListItem'
def data_type
type_id = RepositoryColumn
.data_types[object.data_type]
I18n.t("api.v1.inventory_data_types.t#{type_id}")
end
end
end
end