diff --git a/lib/custom_wizard/subscription.rb b/lib/custom_wizard/subscription.rb index 8d9d122e..96efe92c 100644 --- a/lib/custom_wizard/subscription.rb +++ b/lib/custom_wizard/subscription.rb @@ -180,6 +180,11 @@ class CustomWizard::Subscription product_slug === "community" end + # TODO candidate for removal once code that depends on it externally is no longer used. + def self.client_installed? + defined?(DiscourseSubscriptionClient) == 'constant' && DiscourseSubscriptionClient.class == Module + end + def self.subscribed? new.subscribed? end