Class: HrLite::DesignationChange

Inherits:
ApplicationRecord show all
Includes:
Audited
Defined in:
app/models/hr_lite/designation_change.rb

Overview

One promotion / role change. Creating it stamps the employee profile's current designation and tells the host (so e.g. the CMS job title stays in sync). Rows are the career timeline — never edited or deleted.

Constant Summary

Constants included from Audited

Audited::REDACTED, Audited::SKIPPED_ATTRIBUTES

Instance Method Summary collapse

Instance Method Details

#readonly?Boolean

Returns:

  • (Boolean)


20
21
22
# File 'app/models/hr_lite/designation_change.rb', line 20

def readonly?
  persisted? && !destroyed?
end