From 43f1bfd748663a38db9e09d976861d806e4240f8 Mon Sep 17 00:00:00 2001 From: Rowan Crawford Date: Thu, 29 Apr 2010 01:12:14 +1200 Subject: [PATCH] Fixes north america/US crosslinking stuff --- lib/holidays.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/holidays.rb b/lib/holidays.rb index 80b9735..4e38caf 100644 --- a/lib/holidays.rb +++ b/lib/holidays.rb @@ -259,6 +259,8 @@ private regions.flatten! + require "holidays/north_america" if regions.include?(:us) # special case for north_america/US cross-linking + raise UnknownRegionError unless regions.all? { |r| r == :any or @@regions.include?(r) or begin require "holidays/#{r.to_s}"; rescue LoadError; false; end } regions end