Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-22 09:20:29 +01:00
update subscription types
Dieser Commit ist enthalten in:
Ursprung
50176b400d
Commit
41e0f13b25
2 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
|
@ -5,7 +5,7 @@ class CustomWizard::AdminController < ::Admin::AdminController
|
||||||
def index
|
def index
|
||||||
render_json_dump(
|
render_json_dump(
|
||||||
#TODO replace with appropriate static?
|
#TODO replace with appropriate static?
|
||||||
api_section: ["advanced"].include?(CustomWizard::Subscription.type),
|
api_section: ["business"].include?(CustomWizard::Subscription.type),
|
||||||
notices: ActiveModel::ArraySerializer.new(
|
notices: ActiveModel::ArraySerializer.new(
|
||||||
CustomWizard::Notice.list,
|
CustomWizard::Notice.list,
|
||||||
each_serializer: CustomWizard::NoticeSerializer
|
each_serializer: CustomWizard::NoticeSerializer
|
||||||
|
|
|
@ -13,7 +13,7 @@ class CustomWizard::Subscription::Subscription
|
||||||
end
|
end
|
||||||
|
|
||||||
def types
|
def types
|
||||||
%w(none basic advanced)
|
%w(none standard business)
|
||||||
end
|
end
|
||||||
|
|
||||||
def active?
|
def active?
|
||||||
|
|
Laden …
In neuem Issue referenzieren