about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authoralpaca-tc <alpaca-tc@alpaca.tc>2017-05-07 06:06:52 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-05-06 23:06:52 +0200
commit74036a2c9dba8fad553f13669f265340cd67279a (patch)
treee6c868a1d1cff2719732c09f6cde46704d5f1580 /app
parent05b72368ed56f23e247d28c2798789f91bb096c5 (diff)
Hotfix convert string from symbol (#2856)
* Convert key to string from symbol

* Prefer :public_send instead of
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