Does not belong here anymore

This commit is contained in:
Jorge Manrubia
2025-04-24 13:48:53 +02:00
parent 905ccb9b4b
commit 27f6006b58
2 changed files with 1 additions and 6 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ module NotificationsHelper
private
def event_notification_action(event)
if event.initial_assignment?
if event.action.card_published? && event.eventable.assigned_to?(event.creator)
"card_assigned"
else
event.action
-5
View File
@@ -17,9 +17,4 @@ class Event < ApplicationRecord
def notifiable_target
eventable
end
# TODO: This doesn't belong here anymore
def initial_assignment?
action == "card_published" && eventable.assigned_to?(creator)
end
end