app/models/user.rb
# Virtual attribute for the unencrypted password
Virtual attribute for the unencrypted password
Virtual attribute for the unencrypted password
def forget_me
      self.remember_token_expires_at = nil
      self.remember_token            = nil
      save(false)
   end
def forget_me self . remember_token_expires_at = nil self . remember_token = nil save ( false ) end
Virtual attribute for the unencrypted password
Virtual attribute for the unencrypted password