about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/services/notify_service.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/services/notify_service.rb b/app/services/notify_service.rb
index 00f7cbd00..9c7eb26ef 100644
--- a/app/services/notify_service.rb
+++ b/app/services/notify_service.rb
@@ -54,10 +54,10 @@ class NotifyService < BaseService
   end
 
   def send_email
-    NotificationMailer.send(@notification.type, @recipient, @notification).deliver_later
+    NotificationMailer.public_send(@notification.type, @recipient, @notification).deliver_later
   end
 
   def email_enabled?
-    @recipient.user.settings.notification_emails[@notification.type]
+    @recipient.user.settings.notification_emails[@notification.type.to_s]
   end
 end