Fix error in severed relationship event serializer (#29670)

main
Claire 2024-03-20 18:14:53 +01:00 committed by GitHub
parent 98a2bb8be2
commit f4d753aedf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 1 deletions

View File

@ -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!