Rename for consistency with what we had for comments

This commit is contained in:
Jorge Manrubia
2025-04-24 14:51:25 +02:00
parent 4183a5a32c
commit ccb72ad229
+2 -2
View File
@@ -5,7 +5,7 @@ class Mention < ApplicationRecord
belongs_to :mentioner, class_name: "User"
belongs_to :mentionee, class_name: "User", inverse_of: :mentions
after_create_commit :add_mentionee_as_watcher
after_create_commit :watch_source_by_mentionee
def self_mention?
mentioner == mentionee
@@ -16,7 +16,7 @@ class Mention < ApplicationRecord
end
private
def add_mentionee_as_watcher
def watch_source_by_mentionee
source.watch_by(mentionee)
end
end