Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-22 01:10:28 +01:00
namespace fix
Dieser Commit ist enthalten in:
Ursprung
c5d8003761
Commit
1a32862fd1
1 geänderte Dateien mit 3 neuen und 1 gelöschten Zeilen
|
@ -1,4 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
require "discourse_subscription_client"
|
||||||
|
|
||||||
class CustomWizard::Subscription
|
class CustomWizard::Subscription
|
||||||
PRODUCT_HIERARCHY = %w[
|
PRODUCT_HIERARCHY = %w[
|
||||||
community
|
community
|
||||||
|
@ -105,7 +107,7 @@ class CustomWizard::Subscription
|
||||||
:product_slug
|
:product_slug
|
||||||
|
|
||||||
def initialize
|
def initialize
|
||||||
result = DiscourseSubscriptionClient.find_subscriptions("discourse-custom-wizard")
|
result = ::DiscourseSubscriptionClient.find_subscriptions("discourse-custom-wizard")
|
||||||
|
|
||||||
if result&.any?
|
if result&.any?
|
||||||
ids_and_slugs = result.subscriptions.map do |subscription|
|
ids_and_slugs = result.subscriptions.map do |subscription|
|
||||||
|
|
Laden …
In neuem Issue referenzieren