Module: Revise::Mailers::Confirmable

Defined in:
lib/revise/mailers/confirmable.rb

Class Method Summary collapse

Class Method Details

.extended(klass) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
15
# File 'lib/revise/mailers/confirmable.rb', line 4

def self.extended(klass)
  klass.mailer :confirmable do 
    email :confirmation_instructions do |name, email, confirmation_token|
      from Revise.mailer_from
      to email
      subject t('revise.confirmable.confirmation_instructions.subject', :domain => ENV['DOMAIN'])
      locals :name => name, :email => email, :confirmation_token => confirmation_token
      render 'revise/confirmation_instructions'
      content_type :html 
    end
  end
end