FIX: Holidays gem not required in Sidekiq.

FIX: Holidays gem not required in Sidekiq.

diff --git a/jobs/scheduled/create_holiday_events.rb b/jobs/scheduled/create_holiday_events.rb
index 42222e6..f6785b2 100644
--- a/jobs/scheduled/create_holiday_events.rb
+++ b/jobs/scheduled/create_holiday_events.rb
@@ -8,6 +8,8 @@ module Jobs
       return unless SiteSetting.calendar_enabled
       return unless topic_id = SiteSetting.holiday_calendar_topic_id.presence
 
+      require 'holidays' if !defined?(Holidays)
+
       regions_and_user_ids = Hash.new { |h, k| h[k] = [] }
 
       UserCustomField
diff --git a/plugin.rb b/plugin.rb
index 6a80b8b..2eddd23 100644
--- a/plugin.rb
+++ b/plugin.rb
@@ -6,9 +6,8 @@
 # author: Daniel Waterworth, Joffrey Jaffeux
 # url: https://github.com/discourse/discourse-calendar
 
-if !Rails.env.production? || Sidekiq.server?
-  require File.join(File.dirname(__FILE__), "vendor/holidays/lib/holidays")
-end
+libdir = File.join(File.dirname(__FILE__), "vendor/holidays/lib")
+$LOAD_PATH.unshift(libdir) unless $LOAD_PATH.include?(libdir)
 
 gem 'rrule', '0.4.2', require: false
 

GitHub sha: 10456a93a2e5f280ea9d145851baa12c11a13fcb