Class: UserPlane::InviteMailer

Inherits:
Object
  • Object
show all
Defined in:
app/mailers/user_plane/invite_mailer.rb

Instance Method Summary collapse

Instance Method Details

#invite(invite) ⇒ Object

Subject can be set in your I18n file at config/locales/en.yml with the following lookup:

en.invite_mailer.invite.subject


8
9
10
11
12
# File 'app/mailers/user_plane/invite_mailer.rb', line 8

def invite invite
  @sign_up_with_invite = User::SignUpWithInvite.new(invite: invite)

  mail to: @sign_up_with_invite.invite.recipient
end