This commit is contained in:
Jorge Manrubia
2025-04-24 15:20:08 +02:00
parent 40368032f2
commit 331fdc05f6
+4 -4
View File
@@ -4,10 +4,10 @@ class Notifier
class << self
def for(source)
case source
when Event
"Notifier::#{source.eventable.class}EventNotifier".safe_constantize&.new(source)
when Mention
MentionNotifier.new(source)
when Event
"Notifier::#{source.eventable.class}EventNotifier".safe_constantize&.new(source)
when Mention
MentionNotifier.new(source)
end
end
end