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(