方法
- W
实例公开方法
with(params) 链接
向邮件提供程序提供参数,以便在实例方法和回调中使用它们。
InvitationsMailer.with(inviter: person_a, invitee: person_b).account_invitation.deliver_later
请参阅 Parameterized
文档以获取完整示例。
来源: 显示 | 在 GitHub 上
# File actionmailer/lib/action_mailer/parameterized.rb, line 106 def with(params) ActionMailer::Parameterized::Mailer.new(self, params) end