FIX: Use top-level namespace for base classes (#45)

FIX: Use top-level namespace for base classes (#45)

diff --git a/jobs/check_akismet_post.rb b/jobs/check_akismet_post.rb
index 6ba788a..9330b62 100644
--- a/jobs/check_akismet_post.rb
+++ b/jobs/check_akismet_post.rb
@@ -1,7 +1,7 @@
 # frozen_string_literal: true
 
 module Jobs
-  class CheckAkismetPost < Jobs::Base
+  class CheckAkismetPost < ::Jobs::Base
 
     # Check a single post for spam. We do this for TL0 to get a faster response
     # without batching.
diff --git a/jobs/regular/check_users_for_spam.rb b/jobs/regular/check_users_for_spam.rb
index 2e3d0a8..c1d9b05 100644
--- a/jobs/regular/check_users_for_spam.rb
+++ b/jobs/regular/check_users_for_spam.rb
@@ -1,7 +1,7 @@
 # frozen_string_literal: true
 
 module Jobs
-  class CheckUsersForSpam < Jobs::Base
+  class CheckUsersForSpam < ::Jobs::Base
     def execute(args)
       user = User.includes(:user_profile).find_by(id: args[:user_id])
       raise Discourse::InvalidParameters.new(:user_id) unless user.present?
diff --git a/jobs/regular/confirm_akismet_flagged_posts.rb b/jobs/regular/confirm_akismet_flagged_posts.rb
index fde22c6..2c2befc 100644
--- a/jobs/regular/confirm_akismet_flagged_posts.rb
+++ b/jobs/regular/confirm_akismet_flagged_posts.rb
@@ -1,7 +1,7 @@
 # frozen_string_literal: true
 
 module Jobs
-  class ConfirmAkismetFlaggedPosts < Jobs::Base
+  class ConfirmAkismetFlaggedPosts < ::Jobs::Base
     def execute(args)
       raise Discourse::InvalidParameters.new(:user_id) unless args[:user_id]
       raise Discourse::InvalidParameters.new(:performed_by_id) unless args[:performed_by_id]
diff --git a/jobs/update_akismet_status.rb b/jobs/update_akismet_status.rb
index 1f39362..04af70a 100644
--- a/jobs/update_akismet_status.rb
+++ b/jobs/update_akismet_status.rb
@@ -1,7 +1,7 @@
 # frozen_string_literal: true
 
 module Jobs
-  class UpdateAkismetStatus < Jobs::Base
+  class UpdateAkismetStatus < ::Jobs::Base
     def execute(args)
       return unless SiteSetting.akismet_enabled?

GitHub sha: 98c1c3fa

1 Like