module ActionMailer::Parameterized::ClassMethods
Public Instance Methods
# File actionmailer/lib/action_mailer/parameterized.rb, line 100 def with(params) ActionMailer::Parameterized::Mailer.new(self, params) end
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).account_invitation.deliver_later
See Parameterized documentation for full example.
© 2004–2019 David Heinemeier Hansson
Licensed under the MIT License.