Module: ActiveAuthentication::Model::Timeoutable

Extended by:
ActiveSupport::Concern
Defined in:
lib/active_authentication/model/timeoutable.rb

Instance Method Summary collapse

Instance Method Details

#timedout?(last_request_at) ⇒ Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/active_authentication/model/timeoutable.rb', line 10

def timedout?(last_request_at)
  last_request_at && last_request_at <= ActiveAuthentication.timeout_in.ago
end