Sha256: 2ff25533c6aea7f8e6afbaeff6e4a5eed98264c7e847db174bf8aaf9b2b2c7ec

Contents?: true

Size: 539 Bytes

Versions: 8

Compression:

Stored size: 539 Bytes

Contents

class UserMailer < ActionMailer::Base

  def reset_notification(user, request)
    setup_email(user)
    subject         I18n.translate('user_mailer.link_to_reset_your_password')
    @body[:url]  =  reset_users_url(:host => request.host_with_port,
                                    :reset_code => user.perishable_token)
  end

protected

  def url_prefix(request)
    "#{request.protocol}#{request.host_with_port}"
  end

  def setup_email(user)
    recipients    user.email
    sent_on       Time.now
    @body[:user] = user
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
refinerycms-0.9.7.15 vendor/plugins/authentication/app/models/user_mailer.rb
refinerycms-0.9.7.14 vendor/plugins/authentication/app/models/user_mailer.rb
refinerycms-0.9.7.13 vendor/plugins/authentication/app/models/user_mailer.rb
refinerycms-0.9.7.11 vendor/plugins/authentication/app/models/user_mailer.rb
refinerycms-0.9.7.10 vendor/plugins/authentication/app/models/user_mailer.rb
refinerycms-0.9.7.9 vendor/plugins/authentication/app/models/user_mailer.rb
refinerycms-0.9.7.8 vendor/plugins/authentication/app/models/user_mailer.rb
refinerycms-0.9.7.7 vendor/plugins/authentication/app/models/user_mailer.rb