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

Version Path
invitation-0.6.1 app/mailers/invite_mailer.rb
invitation-0.6.0 app/mailers/invite_mailer.rb
invitation-0.5.1 app/mailers/invite_mailer.rb
invitation-0.5.0 app/mailers/invite_mailer.rb
invitation-0.4.5 app/mailers/invite_mailer.rb
invitation-0.4.4 app/mailers/invite_mailer.rb
invitation-0.4.3 app/mailers/invite_mailer.rb
invitation-0.4.2 app/mailers/invite_mailer.rb
invitation-0.4.1 app/mailers/invite_mailer.rb
invitation-0.4 app/mailers/invite_mailer.rb
invitation-0.3 app/mailers/invite_mailer.rb
invitation-0.2 app/mailers/invite_mailer.rb