blob: 4c0fae6d91d7ef23063a3b5de26d9a57145db2e8 (
plain) (
tree)
|
|
class ParamsMailer < ActionMailer::Base
before_action { @inviter, @invitee = params[:inviter], params[:invitee] }
default to: Proc.new { @invitee }, from: -> { @inviter }
def invitation
mail(subject: "Welcome to the project!") do |format|
format.text { render plain: "So says #{@inviter}" }
end
end
end
|