0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-23 09:50:28 +01:00
discourse-custom-wizard/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