Class: Decidim::ImpersonationLog

Inherits:
ApplicationRecord show all
Defined in:
app/models/decidim/impersonation_log.rb

Overview

ImpersonationLogs are created whenever an admin impersonate a managed user

Constant Summary collapse

SESSION_TIME_IN_MINUTES =
30

Instance Method Summary collapse

Instance Method Details

#ended?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'app/models/decidim/impersonation_log.rb', line 16

def ended?
  ended_at.present?
end

#expired?Boolean

Returns:

  • (Boolean)


20
21
22
# File 'app/models/decidim/impersonation_log.rb', line 20

def expired?
  expired_at.present?
end