Class: Notifier

Inherits:
ActionMailer::Base
  • Object
show all
Defined in:
app/models/notifier.rb

Instance Method Summary collapse

Instance Method Details

#password_reset_instructions(user) ⇒ Object



12
13
14
15
16
17
18
# File 'app/models/notifier.rb', line 12

def password_reset_instructions(user)
  subject       "Password Reset Instructions for #{Settings.site.name}"
  from          Settings.mailer.from
  recipients    user.email
  sent_on       Time.now
  body          :edit_password_reset_url => edit_password_reset_url(user.perishable_token)
end

#registration_email(user) ⇒ Object



4
5
6
7
8
9
10
# File 'app/models/notifier.rb', line 4

def registration_email(user)
  subject       "Activate your new #{Settings.site.name} account"
  from          Settings.mailer.from
  recipients    user.email
  sent_on       Time.now
  body          :user => user
end