From 74036a2c9dba8fad553f13669f265340cd67279a Mon Sep 17 00:00:00 2001 From: alpaca-tc Date: Sun, 7 May 2017 06:06:52 +0900 Subject: Hotfix convert string from symbol (#2856) * Convert key to string from symbol * Prefer :public_send instead of --- app/services/notify_service.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/services') 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 -- cgit