Sha256: 94dd107a131740da8238c96fcea4f9ee2fbd86c0825654c5daead8ccb957e219
Contents?: true
Size: 327 Bytes
Versions: 7
Compression:
Stored size: 327 Bytes
Contents
class Newbie < User def send_password_set generate_token(:password_reset_token) self.password_reset_sent_at = Time.zone.now # necessary to pass has_secure_password validations self.password, self.password_confirmation = 'temporary', 'temporary' save! UserMailer.password_set(self).deliver end end
Version data entries
7 entries across 7 versions & 1 rubygems