From f4d753aedfd0916cba554e5cce42b854072de642 Mon Sep 17 00:00:00 2001 From: Claire Date: Wed, 20 Mar 2024 18:14:53 +0100 Subject: [PATCH] Fix error in severed relationship event serializer (#29670) --- app/models/account_relationship_severance_event.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/models/account_relationship_severance_event.rb b/app/models/account_relationship_severance_event.rb index e621b5475..84b8b1c65 100644 --- a/app/models/account_relationship_severance_event.rb +++ b/app/models/account_relationship_severance_event.rb @@ -16,7 +16,13 @@ class AccountRelationshipSeveranceEvent < ApplicationRecord belongs_to :account belongs_to :relationship_severance_event - delegate :severed_relationships, :type, :target_name, :purged?, to: :relationship_severance_event, prefix: false + delegate :severed_relationships, + :type, + :target_name, + :purged, + :purged?, + to: :relationship_severance_event, + prefix: false before_create :set_relationships_count!