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