Class: Alchemy::Notifications

Inherits:
ActionMailer::Base
  • Object
show all
Defined in:
app/mailers/alchemy/notifications.rb

Instance Method Summary collapse

Instance Method Details

#alchemy_user_created(user) ⇒ Object



14
15
16
17
18
19
20
21
# File 'app/mailers/alchemy/notifications.rb', line 14

def alchemy_user_created(user)
  @user = user
  @url = admin_url
  mail(
    to: user.email,
    subject: Alchemy.t("Your Alchemy Login")
  )
end

#member_created(user) ⇒ Object



5
6
7
8
9
10
11
12
# File 'app/mailers/alchemy/notifications.rb', line 5

def member_created(user)
  @user = user

  mail(
    to: user.email,
    subject: Alchemy.t("Your user credentials")
  )
end

#reset_password_instructions(user, token, opts = {}) ⇒ Object



23
24
25
26
27
28
29
30
# File 'app/mailers/alchemy/notifications.rb', line 23

def reset_password_instructions(user, token, opts = {})
  @user = user
  @token = token
  mail(
    to: user.email,
    subject: Alchemy.t("Reset password instructions")
  )
end