Class: Notify::Mailer
- Inherits:
-
ActionMailer::Base
- Object
- ActionMailer::Base
- Notify::Mailer
- Defined in:
- lib/notify/mailer.rb
Instance Method Summary collapse
Instance Method Details
#dispatch(message_name, locals:, to:, subject:, from: nil, cc: nil, bcc: nil, template_path: nil) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/notify/mailer.rb', line 7 def dispatch(, locals:, to:, subject:, from: nil, cc: nil, bcc: nil, template_path: nil) prepend_view_path(template_path.to_s) if template_path bridge_locals(locals) = { to: to, subject: subject, template_name: .to_s, template_path: "" } [:from] = from if from [:cc] = cc if cc [:bcc] = bcc if bcc mail() end |