Module: HrLite::Audited

Extended by:
ActiveSupport::Concern
Included in:
Appraisal, DesignationChange, EmployeeProfile, Holiday, LeaveType, OfficeLocation, SalaryStructure, Setting
Defined in:
app/models/concerns/hr_lite/audited.rb

Overview

Include in every leadership-mutable model. Each create/update/destroy writes an append-only AuditLog row and publishes policy.changed to leadership. Encrypted attributes are logged as "[changed]" — plaintext PII never reaches the audit table or email.

Constant Summary collapse

SKIPPED_ATTRIBUTES =
%w[updated_at created_at].freeze
REDACTED =
"[changed]".freeze