Class: Decidim::ImpersonationLog
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Decidim::ImpersonationLog
- 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
16 17 18 |
# File 'app/models/decidim/impersonation_log.rb', line 16 def ended? ended_at.present? end |
#expired? ⇒ Boolean
20 21 22 |
# File 'app/models/decidim/impersonation_log.rb', line 20 def expired? expired_at.present? end |