If you look inside config/initializers/devise.rb
you will find configuration settings that include config.timeout_in
.
It is also possible to set it within the model:
class User < ActiveRecord::Base
devise :timeoutable, timeout_in: 15.minutes
end
Check this link for more information.