From 65def654824d44282c7e07575355d8ee64997adf Mon Sep 17 00:00:00 2001 From: Lan Pham Date: Fri, 11 Apr 2025 10:42:44 +0100 Subject: [PATCH] Fix service_url deprecation for rails 7.0 --- .../report_generator/active_storage_download_adapter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/concerns/report_generator/active_storage_download_adapter.rb b/app/concerns/report_generator/active_storage_download_adapter.rb index 92fca53..b36a13e 100644 --- a/app/concerns/report_generator/active_storage_download_adapter.rb +++ b/app/concerns/report_generator/active_storage_download_adapter.rb @@ -12,6 +12,6 @@ def expiring_link(expires_in: ReportGenerator::Download::MAX_EXPIRY) ActiveStorage::Current.host = ReportGenerator.config.local_storage_host end - self.report.service_url(expires_in: expires_in.to_i, disposition: "attachment") + self.report.url(expires_in: expires_in.to_i, disposition: "attachment") end end