diff --git a/app/serializers/api/variant_serializer.rb b/app/serializers/api/variant_serializer.rb index 6a38fe9b93..c1fa8d213b 100644 --- a/app/serializers/api/variant_serializer.rb +++ b/app/serializers/api/variant_serializer.rb @@ -1,7 +1,6 @@ class Api::VariantSerializer < ActiveModel::Serializer attributes :id, :is_master, :count_on_hand, :name_to_display, :unit_to_display attributes :options_text, :on_demand, :price, :fees, :price_with_fees, :product_name - attributes :tag_list def price object.price @@ -23,4 +22,8 @@ class Api::VariantSerializer < ActiveModel::Serializer def product_name object.product.name end + + def tag_list + object.tag_list if object.is_a? VariantOverride + end end