This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
|
||||
def self.holiday?(day)
|
||||
- !WlNationalHoliday.where('start <= ? AND end >= ?', day, day).empty?
|
||||
+ !WlNationalHoliday.where('start <= ? AND "end" >= ?', day, day).empty?
|
||||
+ !WlNationalHoliday.where(start: ..day).where(end: day..).empty?
|
||||
end
|
||||
|
||||
def self.vacation?(day, assignee)
|
||||
|
||||
Reference in New Issue
Block a user