Sha256: d29a68ac3d5c28f24048a3ce5be27b74b4e7a424cb36314602a2eb5f6cee022c
Contents?: true
Size: 631 Bytes
Versions: 12
Compression:
Stored size: 631 Bytes
Contents
# Send invitations to new and existing users. class InviteMailer < ActionMailer::Base def existing_user(invite) @invite = invite mail( from: Invitation.configuration.mailer_sender, to: @invite.email, subject: I18n.t('invitation.invite_mailer.existing_user.subject') ) end def new_user(invite) @invite = invite @user_registration_url = Invitation.configuration.user_registration_url.call(invite_token: @invite.token) mail( from: Invitation.configuration.mailer_sender, to: @invite.email, subject: I18n.t('invitation.invite_mailer.new_user.subject') ) end end
Version data entries
12 entries across 12 versions & 1 rubygems