Class: ActingFor::AuditEvent

Inherits:
ApplicationRecord show all
Defined in:
app/models/acting_for/audit_event.rb

Constant Summary collapse

DECISION_REASONS =
{
  "allow" => "delegation_allowed",
  "require_approval" => "delegation_requires_approval",
  "deny" => "no_matching_delegation"
}.freeze

Instance Method Summary collapse

Instance Method Details

#readonly? ⇒ Boolean

Returns:

  • (Boolean)


18
19
20
# File 'app/models/acting_for/audit_event.rb', line 18

def readonly?
  persisted? || super
end