Class: HrLite::LeaveType

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

Constant Summary collapse

ACCRUALS =
%w[yearly_upfront monthly].freeze

Constants included from Audited

Audited::REDACTED, Audited::SKIPPED_ATTRIBUTES

Instance Method Summary collapse

Instance Method Details

#unlimited?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'app/models/hr_lite/leave_type.rb', line 18

def unlimited?
  annual_quota.nil?
end