diff --git a/app/models/notifier.rb b/app/models/notifier.rb index b856c4073..81e69ce07 100644 --- a/app/models/notifier.rb +++ b/app/models/notifier.rb @@ -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