0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-24 18:30:27 +01:00

restore client install check

Dieser Commit ist enthalten in:
merefield 2023-11-17 09:10:46 +00:00
Ursprung b0d91ccd3c
Commit cf1e661f5e

Datei anzeigen

@ -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