0
0
Fork 0

Hotfix convert string from symbol (#2856)

* Convert key to string from symbol

* Prefer :public_send instead of
This commit is contained in:
alpaca-tc 2017-05-07 06:06:52 +09:00 committed by Eugen Rochko
parent 05b72368ed
commit 74036a2c9d
2 changed files with 40 additions and 2 deletions

View file

@ -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