Class: Refinery::Authentication::Devise::UserMailer

Inherits:
ActionMailer::Base
  • Object
show all
Defined in:
app/mailers/refinery/authentication/devise/user_mailer.rb

Instance Method Summary collapse

Instance Method Details

#reset_notification(user, request, reset_password_token) ⇒ Object


6
7
8
9
10
11
12
13
14
15
16
# File 'app/mailers/refinery/authentication/devise/user_mailer.rb', line 6

def reset_notification(user, request, reset_password_token)
  @user = user
  @url = refinery.edit_authentication_devise_user_password_url({
    :host => request.host_with_port,
    :reset_password_token => reset_password_token
  })

  mail(:to => user.email,
       :subject => t('subject', :scope => 'refinery.authentication.devise.user_mailer.reset_notification'),
       :from => "\"#{Refinery::Core.site_name}\" <#{Refinery::Authentication::Devise.email_from_name}@#{request.domain}>")
end