From 06f02b22984bb18ff4d0d270d01b7c362033adc8 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Mon, 17 Aug 2015 17:26:13 +0200 Subject: [PATCH] Fixed updateding 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 474524bbd..d9ef7d6a6 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 - 5.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(