Class: Admin::Mailer

Inherits:
ActionMailer::Base
  • Object
show all
Defined in:
app/mailers/admin/mailer.rb

Instance Method Summary collapse

Instance Method Details

#reset_password_instructions(user) ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
# File 'app/mailers/admin/mailer.rb', line 5

def reset_password_instructions(user)
  @user = user

  options = { :to => user.email,
              :subject => "[#{Typus.admin_title}] #{Typus::I18n.t("Reset password")}" }

  mail(options) do |format|
    format.text
    format.html
  end
end