Class: PayrollHoliday
Class Method Summary
collapse
#create_or_update_procedure
define_decrypted_attribute, define_decrypted_attributes, #errors_in_bullet_points, primary_connection, special_connection
Class Method Details
.for_year(year) ⇒ Object
10
11
12
|
# File 'app/models/payroll_holiday.rb', line 10
def self.for_year(year)
PayrollHoliday.where('YEAR(date) = ?', year)
end
|
.years ⇒ Object
6
7
8
|
# File 'app/models/payroll_holiday.rb', line 6
def self.years
PayrollHoliday.distinct.pluck('YEAR(date)').map(&:to_i)
end
|