Permalink
Browse files

Fix holiday method.

  • Loading branch information...
oris committed Apr 10, 2012
1 parent abba44a commit 1208c086288144efdf980e35efc4af961d20be96
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/calendar.rb
View
@@ -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)

0 comments on commit 1208c08

Please sign in to comment.