module Authlogic::Session::MagicColumns::Config
Configuration for the magic columns feature.
Public Instance Methods
last_request_at_threshold(value = nil)
click to toggle source
Every time a session is found the last_request_at field for that record is updated with the current time, if that field exists. If you want to limit how frequent that field is updated specify the threshold here. For example, if your user is making a request every 5 seconds, and you feel this is too frequent, and feel a minute is a good threshold. Set this to 1.minute. Once a minute has passed in between requests the field will be updated.
-
Default:
0 -
Accepts:
integer representing time in seconds
# File lib/authlogic/session/magic_columns.rb, line 40 def last_request_at_threshold(value = nil) rw_config(:last_request_at_threshold, value, 0) end
Also aliased as: last_request_at_threshold=