Class: OpenLoam::AuditRecord
- Inherits:
-
TenantRecord
- Object
- TenantRecord
- OpenLoam::AuditRecord
- Defined in:
- app/models/open_loam/audit_record.rb
Overview
One row per change: who (actor), what (auditable + action + changeset), when (created_at), in which tenant (tenant_id, via TenantRecord). Append-only by convention; not itself audited or evented.
Instance Method Summary collapse
Instance Method Details
#auditable ⇒ Object
14 15 16 |
# File 'app/models/open_loam/audit_record.rb', line 14 def auditable auditable_type.constantize.unscoped.find_by(id: auditable_id) end |