Class: UserNotif::NotifMailer
- Inherits:
-
ActionMailer::Base
- Object
- ActionMailer::Base
- UserNotif::NotifMailer
- Defined in:
- lib/user_notif/notif_mailer.rb
Instance Method Summary collapse
Instance Method Details
#notif_email(notif_id) ⇒ Object
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/user_notif/notif_mailer.rb', line 5 def notif_email(notif_id) notif = Notif.find(notif_id) @target = notif.target @user = notif.user send_email({ to: @user.email, template_path: 'notifs/mailer', template_name: notif.template_name }.merge(notif.)) end |