lib/devise/models/recoverable.rb
# Generates a new random token for reset password
Generates a new random token for reset password
Generates a new random token for reset password
def generate_reset_password_token
          self.reset_password_token = self.class.reset_password_token
          self.reset_password_sent_at = Time.now.utc
          self.reset_password_token
        end
def generate_reset_password_token self . reset_password_token = self . class . reset_password_token self . reset_password_sent_at = Time . now . utc self . reset_password_token end
Generates a new random token for reset password
Generates a new random token for reset password