Hotfix convert string from symbol (#2856)
* Convert key to string from symbol * Prefer :public_send instead of
This commit is contained in:
parent
05b72368ed
commit
74036a2c9d
2 changed files with 40 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue