Class: DeviseMailer

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.senderObject

Reads who is sending the e-mail



9
10
11
# File 'app/models/devise_mailer.rb', line 9

def self.sender
  @@sender
end

.sender=(value) ⇒ Object

Sets who is sending the e-mail



4
5
6
# File 'app/models/devise_mailer.rb', line 4

def self.sender=(value)
  @@sender = value
end

Instance Method Details

#confirmation_instructions(record) ⇒ Object

Deliver confirmation instructions when the user is created or its email is updated, and also when confirmation is manually requested



16
17
18
# File 'app/models/devise_mailer.rb', line 16

def confirmation_instructions(record)
  setup_mail(record, :confirmation_instructions)
end

#reset_password_instructions(record) ⇒ Object

Deliver reset password instructions when manually requested



21
22
23
# File 'app/models/devise_mailer.rb', line 21

def reset_password_instructions(record)
  setup_mail(record, :reset_password_instructions)
end