RoR 3.2 devise (3.2.2): timeout not working
After checking a few questions like:
rails 3.1, devise gem,: timeoutable doesn't work, why?
Devise - Timeout not working
devize config.timeout_in doesn't work
How do I set up a timeout using development?
I have set my user model with: timeoutable
class User < ActiveRecord::Base
devise :rememberable, :demo_authenticatable, :api_authenticatable,:registerable,
:recoverable, :trackable, :validatable, :confirmable, :lockable, :timeoutable
And I also did not miss the timeout_in line in the devise.rb file
config.timeout_in = 1.minutes
I also tried setting the timeout_in property on the custom model, but I keep registering at
Any hints?
Thanks Hi!
+3
alilloig
source
to share
1 answer
If you expect it to present you with a login page on upgrade, remove some of the timeout from your model and put it in devise.rb NOT development.rb and restart the rails server.
config.timeout_in = 1.hour
+2
Erica bista
source
to share