Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-14 05:52:52 +01:00
13 Zeilen
261 B
Ruby
13 Zeilen
261 B
Ruby
|
class CustomWizard::AdminController < ::Admin::AdminController
|
||
|
before_action :ensure_admin
|
||
|
|
||
|
def index
|
||
|
end
|
||
|
|
||
|
private
|
||
|
|
||
|
def find_wizard
|
||
|
params.require(:wizard_id)
|
||
|
@wizard = CustomWizard::Wizard.create(params[:wizard_id].underscore)
|
||
|
end
|
||
|
end
|