From d65d17a9f38c76ef68a58f88edce95ae917cc440 Mon Sep 17 00:00:00 2001 From: Kristina Lim Date: Thu, 10 Oct 2019 20:21:04 +0800 Subject: [PATCH] Freeze report type string in Order and Fulfillment reports --- .../orders_and_fulfillments_report/customer_totals_report.rb | 2 +- .../distributor_totals_by_supplier_report.rb | 2 +- .../supplier_totals_by_distributor_report.rb | 2 +- .../orders_and_fulfillments_report/supplier_totals_report.rb | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/open_food_network/orders_and_fulfillments_report/customer_totals_report.rb b/lib/open_food_network/orders_and_fulfillments_report/customer_totals_report.rb index 24576fa632..00011cc44e 100644 --- a/lib/open_food_network/orders_and_fulfillments_report/customer_totals_report.rb +++ b/lib/open_food_network/orders_and_fulfillments_report/customer_totals_report.rb @@ -1,7 +1,7 @@ module OpenFoodNetwork class OrdersAndFulfillmentsReport class CustomerTotalsReport - REPORT_TYPE = "order_cycle_customer_totals" + REPORT_TYPE = "order_cycle_customer_totals".freeze attr_reader :context diff --git a/lib/open_food_network/orders_and_fulfillments_report/distributor_totals_by_supplier_report.rb b/lib/open_food_network/orders_and_fulfillments_report/distributor_totals_by_supplier_report.rb index 3bd78a1c39..80f080fe0a 100644 --- a/lib/open_food_network/orders_and_fulfillments_report/distributor_totals_by_supplier_report.rb +++ b/lib/open_food_network/orders_and_fulfillments_report/distributor_totals_by_supplier_report.rb @@ -1,7 +1,7 @@ module OpenFoodNetwork class OrdersAndFulfillmentsReport class DistributorTotalsBySupplierReport - REPORT_TYPE = "order_cycle_distributor_totals_by_supplier" + REPORT_TYPE = "order_cycle_distributor_totals_by_supplier".freeze attr_reader :context diff --git a/lib/open_food_network/orders_and_fulfillments_report/supplier_totals_by_distributor_report.rb b/lib/open_food_network/orders_and_fulfillments_report/supplier_totals_by_distributor_report.rb index 7124479334..d1eff7acb9 100644 --- a/lib/open_food_network/orders_and_fulfillments_report/supplier_totals_by_distributor_report.rb +++ b/lib/open_food_network/orders_and_fulfillments_report/supplier_totals_by_distributor_report.rb @@ -1,7 +1,7 @@ module OpenFoodNetwork class OrdersAndFulfillmentsReport class SupplierTotalsByDistributorReport - REPORT_TYPE = "order_cycle_supplier_totals_by_distributor" + REPORT_TYPE = "order_cycle_supplier_totals_by_distributor".freeze attr_reader :context diff --git a/lib/open_food_network/orders_and_fulfillments_report/supplier_totals_report.rb b/lib/open_food_network/orders_and_fulfillments_report/supplier_totals_report.rb index 3d1f5cef15..cdead97436 100644 --- a/lib/open_food_network/orders_and_fulfillments_report/supplier_totals_report.rb +++ b/lib/open_food_network/orders_and_fulfillments_report/supplier_totals_report.rb @@ -1,7 +1,7 @@ module OpenFoodNetwork class OrdersAndFulfillmentsReport class SupplierTotalsReport - REPORT_TYPE = "order_cycle_supplier_totals" + REPORT_TYPE = "order_cycle_supplier_totals".freeze attr_reader :context