From 1a32862fd1e857f4b4d4396be72e30b7fceae2ff Mon Sep 17 00:00:00 2001 From: merefield Date: Mon, 25 Sep 2023 17:00:39 +0100 Subject: [PATCH] namespace fix --- lib/custom_wizard/subscription.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/custom_wizard/subscription.rb b/lib/custom_wizard/subscription.rb index 14737f06..68c07df6 100644 --- a/lib/custom_wizard/subscription.rb +++ b/lib/custom_wizard/subscription.rb @@ -1,4 +1,6 @@ # frozen_string_literal: true +require "discourse_subscription_client" + class CustomWizard::Subscription PRODUCT_HIERARCHY = %w[ community @@ -105,7 +107,7 @@ class CustomWizard::Subscription :product_slug def initialize - result = DiscourseSubscriptionClient.find_subscriptions("discourse-custom-wizard") + result = ::DiscourseSubscriptionClient.find_subscriptions("discourse-custom-wizard") if result&.any? ids_and_slugs = result.subscriptions.map do |subscription|