From 0aeaae378ff0f564716890050fc282d5cfb1433a Mon Sep 17 00:00:00 2001 From: Rowan Crawford Date: Wed, 28 Apr 2010 21:12:14 +0800 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 53fc93d..1e861ac 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