Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-10 04:12:53 +01:00
13 Zeilen
Kein EOL
388 B
Ruby
13 Zeilen
Kein EOL
388 B
Ruby
# frozen_string_literal: true
|
|
class CustomWizard::SubscriptionController < ::Admin::AdminController
|
|
before_action :ensure_admin
|
|
|
|
def index
|
|
subscription = CustomWizard::Subscription.new
|
|
render_json_dump(
|
|
subscribed: subscription.subscribed?,
|
|
subscription_type: subscription.type,
|
|
subscription_attributes: CustomWizard::Subscription.attributes,
|
|
)
|
|
end
|
|
end |