Update subscription client class
Dieser Commit ist enthalten in:
Ursprung
e7ab0f7143
Commit
86e6945ad4
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
|
@ -106,7 +106,7 @@ class CustomWizard::Subscription
|
|||
|
||||
def initialize
|
||||
if CustomWizard::Subscription.client_installed?
|
||||
result = SubscriptionClient.find_subscriptions("discourse-custom-wizard")
|
||||
result = DiscourseSubscriptionClient.find_subscriptions("discourse-custom-wizard")
|
||||
|
||||
if result&.any?
|
||||
ids_and_slugs = result.subscriptions.map do |subscription|
|
||||
|
@ -175,7 +175,7 @@ class CustomWizard::Subscription
|
|||
end
|
||||
|
||||
def self.client_installed?
|
||||
defined?(SubscriptionClient) == 'constant' && SubscriptionClient.class == Module
|
||||
defined?(DiscourseSubscriptionClient) == 'constant' && DiscourseSubscriptionClient.class == Module
|
||||
end
|
||||
|
||||
def self.subscribed?
|
||||
|
|
Laden …
In neuem Issue referenzieren