From 4c1f5a1002c9d480f4f5d7de03dd343589becbdb Mon Sep 17 00:00:00 2001 From: Keith Lawrence Date: Mon, 5 Feb 2024 18:18:14 +0000 Subject: [PATCH] remove public_send --- app/lib/local_links_manager/export/links_exporter.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/lib/local_links_manager/export/links_exporter.rb b/app/lib/local_links_manager/export/links_exporter.rb index fedbb571e..cea85f327 100644 --- a/app/lib/local_links_manager/export/links_exporter.rb +++ b/app/lib/local_links_manager/export/links_exporter.rb @@ -65,8 +65,8 @@ def records private def links(local_authority_id, status) - Link.enabled_links.public_send(status) - .where(local_authority_id:) + Link.enabled_links + .where(local_authority_id:, status:) .joins(:local_authority, :service, :interaction) .select(*SELECTION) .order("services.lgsl_code", "interactions.lgil_code").all