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.
Timeoutable adds the following options to devise_for:
* +timeout_in+: the interval to timeout the user session without activity.
user.timedout?(30.minutes.ago)