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



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

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



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

def member_created(user)
  @user = user

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

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



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

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