Does not belong here anymore
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user