rubyforgood/casa

View on GitHub
app/mailers/casa_admin_mailer.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
class CasaAdminMailer < UserMailer
  def deactivation(user)
    @user = user
    @casa_organization = CasaOrg.find(@user.casa_org_id)
    mail(to: @user.email, subject: "Your account has been deactivated")
  end

  def account_setup(user)
    @user = user
    @casa_organization = CasaOrg.find(@user.casa_org_id)
    @token = @user.generate_password_reset_token
    mail(to: @user.email, subject: "Create a password & set up your account")
  end
end