1
0
Fork 0
discourse-custom-wizard-unl.../controllers/custom_wizard/admin/admin.rb
Angus McLeod ab18769820 various
2020-04-13 22:17:22 +10:00

13 Zeilen
Kein EOL
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