Sha256: f870d1ef1dd58d393d1769159b0e4e5908063f17449cadcb6ac4e9b6706fbd0f

Contents?: true

Size: 494 Bytes

Versions: 7

Compression:

Stored size: 494 Bytes

Contents

class UserMailer < ActionMailer::Base
  
  default :from => Setting.first.try(:contact_email) ? Setting.first.try(:contact_email) : 'info@tenthousandhours.eu'

  # Subject can be set in your I18n file at config/locales/en.yml
  # with the following lookup:
  #
  #   en.user_mailer.password_reset.subject
  #
  def password_reset(user)  
    @user = user
    mail :to => user.email, :subject => t('authentication.password_reset_email_subject') + ' | ' + Setting.first.try(:site_name)
  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
tkh_authentication-0.1.8 app/mailers/user_mailer.rb
tkh_authentication-0.9.2 app/mailers/user_mailer.rb
tkh_authentication-0.9.1 app/mailers/user_mailer.rb
tkh_authentication-0.9 app/mailers/user_mailer.rb
tkh_authentication-0.1.7 app/mailers/user_mailer.rb
tkh_authentication-0.1.6 app/mailers/user_mailer.rb
tkh_authentication-0.1.5 app/mailers/user_mailer.rb