Sha256: 868827aa224162711051e5eb96fde04dc50e7bd314a11b8122287985a55bb68d
Contents?: true
Size: 358 Bytes
Versions: 1
Compression:
Stored size: 358 Bytes
Contents
# frozen_string_literal: true 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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby-on-quails-0.1.0 | actionmailer/test/mailers/params_mailer.rb |