class Notifier

Password reset instructions email

Public Instance Methods

password_reset_instructions(people) click to toggle source
# File app/models/notifier.rb, line 3
def password_reset_instructions(people)
  Notifier.default_url_options[:host] = RacingAssociation.current.rails_host
  
  @edit_password_reset_urls = people.map { |person| edit_password_reset_url(person.perishable_token) }    
  @people = people
  
  mail(
    :subject       => "Password Reset Instructions",
    :from          => "#{RacingAssociation.current.short_name} <#{RacingAssociation.current.email}>",
    :to            => people.first.email_with_name
  )
end