Class: Maquina::ActiveSession

Inherits:
ApplicationRecord show all
Defined in:
app/models/maquina/active_session.rb

Instance Method Summary collapse

Methods inherited from ApplicationRecord

searchable?

Instance Method Details

#expired?Boolean

Returns:

  • (Boolean)


13
14
15
16
17
# File 'app/models/maquina/active_session.rb', line 13

def expired?
  return false if expires_at.blank?

  !expires_at.future?
end