Hotfix convert string from symbol (#2856)
* Convert key to string from symbol * Prefer :public_send instead of
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user