From 4b43ac7338aec3f01da0d442664d53bc4dc8ab4b Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Mon, 17 Aug 2015 17:17:21 +0200 Subject: [PATCH] Improved device logging. --- app/controllers/application_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 26b5029df..474524bbd 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -105,7 +105,7 @@ class ApplicationController < ActionController::Base return if request.method == 'GET' || request.method == 'OPTIONS' # only update if needed - return if session[:check_user_device_at] && session[:check_user_device_at] < Time.zone.now - 10.minutes + return if session[:check_user_device_at] && session[:check_user_device_at] < Time.zone.now - 5.minutes session[:check_user_device_at] = Time.zone.now UserDevice.add(