Fix a regression, where user_session_timeout setting in

`application.yml` is not respected.

Introduced in ebe831e782
This commit is contained in:
Artur Beljajev 2018-09-04 11:51:47 +03:00
parent fea8333215
commit 85c1633400

View file

@ -173,7 +173,7 @@ Devise.setup do |config|
# ==> Configuration for :timeoutable
# The time you want to timeout the user session without activity. After this
# time the user will be asked for credentials again. Default is 30 minutes.
# config.timeout_in = 30.minutes
config.timeout_in = ENV['user_session_timeout'].to_i.seconds if ENV['user_session_timeout']
# ==> Configuration for :lockable
# Defines which strategy will be used to lock an account.