Sha256: cf22f20c9597f6219af7a25f3a711d4a1751232a0147639e50be7ad6528a121e

Contents?: true

Size: 444 Bytes

Versions: 14

Compression:

Stored size: 444 Bytes

Contents

class UserMailer < ActionMailer::Base

  def reset_notification(user, request)
    setup_email(user)
    subject         'Link to reset your password'
    @body[:url]  =  url_prefix(request) + "/reset/#{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

14 entries across 14 versions & 1 rubygems

Version Path
refinerycms-0.9.6.34 vendor/plugins/authentication/app/models/user_mailer.rb
refinerycms-0.9.6.33 vendor/plugins/authentication/app/models/user_mailer.rb
refinerycms-0.9.6.32 vendor/plugins/authentication/app/models/user_mailer.rb
refinerycms-0.9.6.31 vendor/plugins/authentication/app/models/user_mailer.rb
refinerycms-0.9.6.30 vendor/plugins/authentication/app/models/user_mailer.rb
refinerycms-0.9.6.29 vendor/plugins/authentication/app/models/user_mailer.rb
refinerycms-0.9.6.28 vendor/plugins/authentication/app/models/user_mailer.rb
refinerycms-0.9.6.27 vendor/plugins/authentication/app/models/user_mailer.rb
refinerycms-0.9.6.26 vendor/plugins/authentication/app/models/user_mailer.rb
refinerycms-0.9.6.25 vendor/plugins/authentication/app/models/user_mailer.rb
refinerycms-0.9.6.24 vendor/plugins/authentication/app/models/user_mailer.rb
refinerycms-0.9.6.23 vendor/plugins/authentication/app/models/user_mailer.rb
refinerycms-0.9.6.22 vendor/plugins/authentication/app/models/user_mailer.rb
refinerycms-0.9.6.21 vendor/plugins/authentication/app/models/user_mailer.rb