From c70671b2d2d2a1798ef63942f7c84d7f09224d0b Mon Sep 17 00:00:00 2001 From: fumimowdan Date: Wed, 27 Sep 2023 15:22:09 +0100 Subject: [PATCH] Cache csv data in report service So that the report returns the data --- app/services/report.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/report.rb b/app/services/report.rb index dbfb50b4..5a6de19b 100644 --- a/app/services/report.rb +++ b/app/services/report.rb @@ -29,7 +29,7 @@ def filename end def data - report.csv + @data ||= report.csv end private