Use has_many through instead of delegate for ARSE<>SR (#29672)
				
					
				
			This commit is contained in:
		
							parent
							
								
									ec1e770fea
								
							
						
					
					
						commit
						8c1d29df7e
					
				@ -16,8 +16,9 @@ class AccountRelationshipSeveranceEvent < ApplicationRecord
 | 
				
			|||||||
  belongs_to :account
 | 
					  belongs_to :account
 | 
				
			||||||
  belongs_to :relationship_severance_event
 | 
					  belongs_to :relationship_severance_event
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  delegate :severed_relationships,
 | 
					  has_many :severed_relationships, through: :relationship_severance_event
 | 
				
			||||||
           :type,
 | 
					
 | 
				
			||||||
 | 
					  delegate :type,
 | 
				
			||||||
           :target_name,
 | 
					           :target_name,
 | 
				
			||||||
           :purged,
 | 
					           :purged,
 | 
				
			||||||
           :purged?,
 | 
					           :purged?,
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user