From c58546285a4e0836f6dfde26d0c2066a72349699 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Mon, 7 Dec 2015 16:20:56 +0100 Subject: [PATCH] Explicit conversion to seconds. --- app/models/setting.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/setting.rb b/app/models/setting.rb index 03b6ce0d1..abd47367c 100644 --- a/app/models/setting.rb +++ b/app/models/setting.rb @@ -17,7 +17,7 @@ class Setting < ApplicationModel @@change_id = nil # rubocop:disable Style/ClassVars @@lookup_at = nil # rubocop:disable Style/ClassVars if ENV['ZAMMAD_SETTING_TTL'] - @@lookup_timeout = ENV['ZAMMAD_SETTING_TTL'].to_i # rubocop:disable Style/ClassVars + @@lookup_timeout = ENV['ZAMMAD_SETTING_TTL'].to_i.seconds # rubocop:disable Style/ClassVars else @@lookup_timeout = 2.minutes # rubocop:disable Style/ClassVars end