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

This commit is contained in:
Krzysztof Kotlarek 2019-09-17 03:38:30 +10:00 committed by Robin Ward
parent 695d56a3dd
commit 154361e22c
3 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
# frozen_string_literal: true
module Jobs
class DiscourseChatAddTypeField < Jobs::Onceoff
class DiscourseChatAddTypeField < ::Jobs::Onceoff
def execute_onceoff(args)
DiscourseChat::Rule.find_each do |rule|
rule.save(validate: false)

View File

@ -1,7 +1,7 @@
# frozen_string_literal: true
module Jobs
class DiscourseChatMigrateFromSlackOfficial < Jobs::Onceoff
class DiscourseChatMigrateFromSlackOfficial < ::Jobs::Onceoff
def execute_onceoff(args)
slack_installed = PluginStoreRow.where(plugin_name: 'discourse-slack-official').exists?

View File

@ -1,7 +1,7 @@
# frozen_string_literal: true
module Jobs
class NotifyChats < Jobs::Base
class NotifyChats < ::Jobs::Base
sidekiq_options retry: false
def execute(args)