FIX: maxminddb:get task no longer working

FIX: maxminddb:get task no longer working

Following our zeitwerk upgrade we needed to be more explicit about the require

diff --git a/lib/tasks/maxminddb.rake b/lib/tasks/maxminddb.rake
index e85e748..4565f34 100644
--- a/lib/tasks/maxminddb.rake
+++ b/lib/tasks/maxminddb.rake
@@ -2,6 +2,8 @@
 
 desc "downloads MaxMind's GeoLite2-City database"
 task "maxminddb:get" do
+  require 'discourse_ip_info'
+
   puts "Downloading MaxMindDb's GeoLite2-City..."
   DiscourseIpInfo.mmdb_download('GeoLite2-City')

GitHub sha: 6471fbd4

1 Like