0
0
Fork 0

Use existing SeveredRelationship.about_local_account scope in more places (#29673)

This commit is contained in:
Matt Jankowski 2024-03-21 04:36:49 -04:00 committed by GitHub
parent 718ee72c80
commit 77897cd24c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 8 additions and 7 deletions

View file

@ -29,6 +29,6 @@ class AccountRelationshipSeveranceEvent < ApplicationRecord
private
def set_relationships_count!
self.relationships_count = severed_relationships.where(local_account: account).count
self.relationships_count = severed_relationships.about_local_account(account).count
end
end