Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix holiday method.

  • Loading branch information...
commit 1208c086288144efdf980e35efc4af961d20be96 1 parent abba44a
@oris oris authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/calendar.rb
View
3  lib/calendar.rb
@@ -40,7 +40,8 @@ def no_work?(date)
def holiday?(date)
date = to_date(date)
- HOLIDAYS.include?(date)
+ holidays = HOLIDAYS.map {|h| to_date(h)}
+ holidays.include?(date)
end
def weekend?(date)
Please sign in to comment.
Something went wrong with that request. Please try again.