app/models/user.rb
# Remembers a user in the database for use in persistent sessions
Remembers a user in the database for use in persistent sessions
Remembers a user in the database for use in persistent sessions
def remember
    self.remember_token = User.new_token
    self.remember_digest = User.digest(remember_token)
    save!(touch: false)
  end
def remember self . remember_token = User . new_token self . remember_digest = User . digest ( remember_token ) save! ( touch : false ) end
Remembers a user in the database for use in persistent sessions
Remembers a user in the database for use in persistent sessions