Improved device logging.
This commit is contained in:
parent
6d7124a169
commit
4b43ac7338
1 changed files with 1 additions and 1 deletions
|
@ -105,7 +105,7 @@ class ApplicationController < ActionController::Base
|
||||||
return if request.method == 'GET' || request.method == 'OPTIONS'
|
return if request.method == 'GET' || request.method == 'OPTIONS'
|
||||||
|
|
||||||
# only update if needed
|
# 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
|
session[:check_user_device_at] = Time.zone.now
|
||||||
|
|
||||||
UserDevice.add(
|
UserDevice.add(
|
||||||
|
|
Loading…
Reference in a new issue