From f8239ed3ed535c55a5c72eff6bc357732fcf0a88 Mon Sep 17 00:00:00 2001 From: Andy Brett Date: Mon, 15 Feb 2021 14:21:20 -0800 Subject: [PATCH] use image path generator for map icons --- app/serializers/api/cached_enterprise_serializer.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/serializers/api/cached_enterprise_serializer.rb b/app/serializers/api/cached_enterprise_serializer.rb index 17588d4a67..6239cfb19c 100644 --- a/app/serializers/api/cached_enterprise_serializer.rb +++ b/app/serializers/api/cached_enterprise_serializer.rb @@ -123,13 +123,13 @@ module Api # Map svg icons. def icon icons = { - hub: "/assets/map_005-hub.svg", - hub_profile: "/assets/map_006-hub-profile.svg", - producer_hub: "/assets/map_005-hub.svg", - producer_shop: "/assets/map_003-producer-shop.svg", - producer: "/assets/map_001-producer-only.svg", + hub: "map_005-hub.svg", + hub_profile: "map_006-hub-profile.svg", + producer_hub: "map_005-hub.svg", + producer_shop: "map_003-producer-shop.svg", + producer: "map_001-producer-only.svg", } - icons[enterprise.category] + ImagePathGenerator.call(icons[enterprise.category]) end # Choose regular icon font for enterprises.