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
# File 'app/models/generic_mailer.rb', line 3

def change_password(user)
  from       BlueLightSpecial.configuration.mailer_sender
  recipients user.email
  subject    I18n.t(:change_password,
                    :scope   => [:blue_light_special, :models, :blue_light_special_mailer],
                    :default => "Change your password")
  body       :url => edit_user_password_url(user,
                     :token  => user.password_reset_token,
                     :escape => false)
end

#confirmation(user) ⇒ Object



23
24
25
26
27
28
29
30
# File 'app/models/generic_mailer.rb', line 23

def confirmation(user)
  from       BlueLightSpecial.configuration.mailer_sender
  recipients user.email
  subject    I18n.t(:confirmation,
                    :scope   => [:blue_light_special, :models, :blue_light_special_mailer],
                    :default => "Account confirmation")
  body      :user => user
end

#welcome(user) ⇒ Object



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

def welcome(user)
  from       BlueLightSpecial.configuration.mailer_sender
  recipients user.email
  subject    I18n.t(:welcome,
                    :scope   => [:blue_light_special, :models, :blue_light_special_mailer],
                    :default => "Welcome")
  body      :user => user
end