Fix issue with severed relationships notifications (#29668)
This commit is contained in:
parent
954b470fbc
commit
98a2bb8be2
3 changed files with 3 additions and 3 deletions
|
@ -16,7 +16,7 @@ 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?, to: :relationship_severance_event, prefix: false
|
||||
|
||||
before_create :set_relationships_count!
|
||||
|
||||
|
|
|
@ -89,7 +89,7 @@ class Notification < ApplicationRecord
|
|||
belongs_to :favourite, inverse_of: :notification
|
||||
belongs_to :poll, inverse_of: false
|
||||
belongs_to :report, inverse_of: false
|
||||
belongs_to :relationship_severance_event, inverse_of: false
|
||||
belongs_to :account_relationship_severance_event, inverse_of: false
|
||||
end
|
||||
|
||||
validates :type, inclusion: { in: TYPES }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue