Class: HrLite::Holiday
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- HrLite::Holiday
- Includes:
- Audited
- Defined in:
- app/models/hr_lite/holiday.rb
Constant Summary
Constants included from Audited
Audited::REDACTED, Audited::SKIPPED_ATTRIBUTES
Class Method Summary collapse
-
.dates_for(range) ⇒ Object
Company-wide holiday dates only — optional holidays never exclude working days.
Class Method Details
.dates_for(range) ⇒ Object
Company-wide holiday dates only — optional holidays never exclude working days.
14 15 16 |
# File 'app/models/hr_lite/holiday.rb', line 14 def self.dates_for(range) company_wide.in_range(range).pluck(:date).to_set end |