Module Devise::Models::Timeoutable
In: lib/devise/models/timeoutable.rb

Timeoutable takes care of veryfing whether a user session has already expired or not. When a session expires after the configured time, the user will be asked for credentials again, it means, he/she will be redirected to the sign in page.

Options

Timeoutable adds the following options to devise_for:

  * +timeout_in+: the interval to timeout the user session without activity.

Examples

  user.timedout?(30.minutes.ago)

Methods

Classes and Modules

Module Devise::Models::Timeoutable::ClassMethods

Public Instance methods

Checks whether the user session has expired based on configured time.

[Validate]