Class: PasswordMailer

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

Instance Method Summary collapse

Instance Method Details

#password_reset_instructions(authenticated_record, request) ⇒ Object


11
12
13
14
15
16
17
# File 'app/mailers/password_mailer.rb', line 11

def password_reset_instructions(authenticated_record, request)
  @authenticated_record = authenticated_record
  domain = self.class.domain || request.domain
  mail :to => authenticated_record.email,
    :from => "#{self.class.from_user}@#{domain}",
    :subject => "[#{domain}] Password Reset"
end