Class Devise::Strategies::Rememberable
In: lib/devise/strategies/rememberable.rb
Parent: Authenticatable

Remember the user through the remember token. This strategy is responsible to verify whether there is a cookie with the remember token, and to recreate the user from this cookie if it exists. Must be called before authenticatable.

Methods

Public Instance methods

To authenticate a user we deserialize the cookie and attempt finding the record in the database. If the attempt fails, we pass to another strategy handle the authentication.

A valid strategy for rememberable needs a remember token in the cookies.

[Validate]