Use `has_many through` instead of `delegate` for ARSE<>SR (#29672)

shrike
Matt Jankowski 2024-03-22 10:43:35 -04:00 committed by GitHub
parent ec1e770fea
commit 8c1d29df7e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 2 deletions

View File

@ -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?,