DEV: Prefer public_send over send.

This commit is contained in:
Guo Xiang Tan
2019-05-07 09:27:05 +08:00
parent 9be70a22cd
commit 152238b4cf
74 changed files with 216 additions and 129 deletions

View File

@@ -126,7 +126,7 @@ class NotificationEmailer
email_user = EmailUser.new(notification)
email_method = Notification.types[notification.notification_type]
email_user.send(email_method) if email_user.respond_to? email_method
email_user.public_send(email_method) if email_user.respond_to? email_method
end
end