Module: SendgridNotification::MailRecordable
- Included in:
- NullMailer, SendgridMailer
- Defined in:
- app/models/sendgrid_notification/mail_recordable.rb
Instance Method Summary collapse
Instance Method Details
#sendmail(to, notification_mail, params = {}) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'app/models/sendgrid_notification/mail_recordable.rb', line 4 def sendmail(to, notification_mail, params = {}) result = super m = MailHistory.create( key: notification_mail.key, to: to, sent_at: Time.now, ) Rails.logger.error m.errors. if m.invalid? # and ignore result end |