Class: GenericMailer

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

Instance Method Summary collapse

Instance Method Details

#change_password(user) ⇒ Object



3
4
5
6
7
8
9
10
11
12
13
# File 'app/models/generic_mailer.rb', line 3

def change_password(user)
  from       Headstart.configuration.mailer_sender
  recipients user.email
  subject    I18n.t(:change_password,
                    :scope   => [:headstart, :models, :headstart_mailer],
                    :default => "Change your password")
  body       :url => edit_user_password_url(user,
                     :token  => user.password_reset_token,
                     :escape => false)
  content_type "text/html"
end

#welcome(user) ⇒ Object



15
16
17
18
19
20
21
22
23
# File 'app/models/generic_mailer.rb', line 15

def welcome(user)
  from       Headstart.configuration.mailer_sender
  recipients user.email
  subject    I18n.t(:welcome,
                    :scope   => [:headstart, :models, :headstart_mailer],
                    :default => "Welcome")
  body      :user => user
  content_type "text/html"
end