From ccb72ad229fe3b2e161ae3923074cefbc8806a78 Mon Sep 17 00:00:00 2001 From: Jorge Manrubia Date: Thu, 24 Apr 2025 14:51:25 +0200 Subject: [PATCH] Rename for consistency with what we had for comments --- app/models/mention.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/mention.rb b/app/models/mention.rb index c14237976..ac5cb336c 100644 --- a/app/models/mention.rb +++ b/app/models/mention.rb @@ -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