123456789_123456789_123456789_123456789_123456789_

Module: ActionMailer::Parameterized::ClassMethods

Relationships & Source Files
Defined in: actionmailer/lib/action_mailer/parameterized.rb

Instance Method Summary

  • #with(params)

    Provide the parameters to the mailer in order to use them in the instance methods and callbacks.

Instance Method Details

#with(params)

Provide the parameters to the mailer in order to use them in the instance methods and callbacks.

InvitationsMailer.with(inviter: person_a, invitee: person_b)..deliver_later

See Parameterized documentation for full example.

[ GitHub ]

  
# File 'actionmailer/lib/action_mailer/parameterized.rb', line 100

def with(params)
  ActionMailer::Parameterized::Mailer.new(self, params)
end