plataformatec/devise — Issue #1445: Dynamic value for timeout_in
Author: cis-manish
Created: 2011-11-16 06:04:55+00:00
State: open

can add dynamic value in timeout_in. Example : devise :database_authenticatable, :registerable, :timeoutable , :omniauthable,:timeout_in => (current_user.email.nil? ? 2.weeks : 1.hour)

I want to set value of timeout_in according to user type.Any help?