From 8c1d29df7ee11c0d8c803c366b125badda8f4e1b Mon Sep 17 00:00:00 2001 From: Matt Jankowski Date: Fri, 22 Mar 2024 10:43:35 -0400 Subject: [PATCH] Use `has_many through` instead of `delegate` for ARSE<>SR (#29672) --- app/models/account_relationship_severance_event.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/models/account_relationship_severance_event.rb b/app/models/account_relationship_severance_event.rb index 20b15e283..697b06b74 100644 --- a/app/models/account_relationship_severance_event.rb +++ b/app/models/account_relationship_severance_event.rb @@ -16,8 +16,9 @@ class AccountRelationshipSeveranceEvent < ApplicationRecord belongs_to :account belongs_to :relationship_severance_event - delegate :severed_relationships, - :type, + has_many :severed_relationships, through: :relationship_severance_event + + delegate :type, :target_name, :purged, :purged?,