1
0
Fork 0
discourse-custom-wizard-unl.../app/controllers/custom_wizard/admin/subscription.rb

13 Zeilen
388 B
Ruby

2023-09-24 08:56:39 +02:00
# frozen_string_literal: true
class CustomWizard::SubscriptionController < ::Admin::AdminController
before_action :ensure_admin
def index
2023-09-24 11:02:52 +02:00
subscription = CustomWizard::Subscription.new
2023-09-24 08:56:39 +02:00
render_json_dump(
2023-09-24 11:02:52 +02:00
subscribed: subscription.subscribed?,
subscription_type: subscription.type,
2023-09-24 08:56:39 +02:00
subscription_attributes: CustomWizard::Subscription.attributes,
)
end
end