Use existing SeveredRelationship.about_local_account
scope in more places (#29673)
This commit is contained in:
parent
718ee72c80
commit
77897cd24c
5 changed files with 8 additions and 7 deletions
|
@ -26,6 +26,7 @@ class SeveredRelationship < ApplicationRecord
|
|||
}
|
||||
|
||||
scope :about_local_account, ->(account) { where(local_account: account) }
|
||||
scope :about_remote_account, ->(account) { where(remote_account: account) }
|
||||
|
||||
scope :active, -> { where(direction: :active) }
|
||||
scope :passive, -> { where(direction: :passive) }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue