mirror of
https://github.com/discourse/discourse-chat-integration.git
synced 2025-03-06 17:59:29 +00:00
FIX: Use top-level namespace for base classes (#33)
This commit is contained in:
parent
695d56a3dd
commit
154361e22c
@ -1,7 +1,7 @@
|
|||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module Jobs
|
module Jobs
|
||||||
class DiscourseChatAddTypeField < Jobs::Onceoff
|
class DiscourseChatAddTypeField < ::Jobs::Onceoff
|
||||||
def execute_onceoff(args)
|
def execute_onceoff(args)
|
||||||
DiscourseChat::Rule.find_each do |rule|
|
DiscourseChat::Rule.find_each do |rule|
|
||||||
rule.save(validate: false)
|
rule.save(validate: false)
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module Jobs
|
module Jobs
|
||||||
class DiscourseChatMigrateFromSlackOfficial < Jobs::Onceoff
|
class DiscourseChatMigrateFromSlackOfficial < ::Jobs::Onceoff
|
||||||
def execute_onceoff(args)
|
def execute_onceoff(args)
|
||||||
slack_installed = PluginStoreRow.where(plugin_name: 'discourse-slack-official').exists?
|
slack_installed = PluginStoreRow.where(plugin_name: 'discourse-slack-official').exists?
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module Jobs
|
module Jobs
|
||||||
class NotifyChats < Jobs::Base
|
class NotifyChats < ::Jobs::Base
|
||||||
sidekiq_options retry: false
|
sidekiq_options retry: false
|
||||||
|
|
||||||
def execute(args)
|
def execute(args)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user