Rename to match actual action

This commit is contained in:
Jorge Manrubia
2025-04-22 14:22:23 +02:00
parent beac61699c
commit 3bf73a0b71
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ module NotificationsHelper
def event_notification_title(event)
if event.commented?
"RE: " + event.card.title
elsif event.assignment?
elsif event.assigned?
"Assigned to you: " + event.card.title
else
event.card.title
+1 -1
View File
@@ -12,7 +12,7 @@ class Event < ApplicationRecord
after_create -> { card.touch(:last_active_at) }
def assignment?
def assigned?
action == "assigned" || initial_assignment?
end