Improved device logging.

This commit is contained in:
Martin Edenhofer 2015-08-17 17:17:21 +02:00
parent 6d7124a169
commit 4b43ac7338

View file

@ -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(