From e5cf21155d05dbbf18aafdbc0399f4b4a810a8f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alberto=20Miedes=20Garc=C3=A9s?= Date: Thu, 2 Apr 2020 12:25:13 +0200 Subject: [PATCH 1/2] Add Grant plan to helper --- app/helpers/account_type_helper.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/helpers/account_type_helper.rb b/app/helpers/account_type_helper.rb index e852d291785e..db2c188206c1 100644 --- a/app/helpers/account_type_helper.rb +++ b/app/helpers/account_type_helper.rb @@ -59,7 +59,8 @@ def public_plan_name(account_type) 'Free Basemap LDS - Annual' => 'Free', 'Enterprise LDS - Annual' => 'Enterprise', 'CARTO Trial Account - Annual' => 'Trial', - 'Free 2020' => 'Free' + 'Free 2020' => 'Free', + 'Grant Subscription' => 'Grant Subscription' }.freeze PLAN_NAME_BY_ACCOUNT_TYPE_DOWN = Hash[PLAN_NAME_BY_ACCOUNT_TYPE.map { |k, v| [k.downcase, v] }] From 69b94e9e6c03f8af6cc1e4bc73c994f905355789 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alberto=20Miedes=20Garc=C3=A9s?= Date: Thu, 2 Apr 2020 15:12:05 +0200 Subject: [PATCH 2/2] Typo --- app/helpers/account_type_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/account_type_helper.rb b/app/helpers/account_type_helper.rb index db2c188206c1..90f63fe419b4 100644 --- a/app/helpers/account_type_helper.rb +++ b/app/helpers/account_type_helper.rb @@ -60,7 +60,7 @@ def public_plan_name(account_type) 'Enterprise LDS - Annual' => 'Enterprise', 'CARTO Trial Account - Annual' => 'Trial', 'Free 2020' => 'Free', - 'Grant Subscription' => 'Grant Subscription' + 'Grant' => 'Grant' }.freeze PLAN_NAME_BY_ACCOUNT_TYPE_DOWN = Hash[PLAN_NAME_BY_ACCOUNT_TYPE.map { |k, v| [k.downcase, v] }]