0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-09-19 23:31:11 +02:00
discourse-custom-wizard/app/controllers/wizard.rb
Angus McLeod a43f4b1344 various
2017-10-07 10:27:38 +08:00

15 Zeilen
419 B
Ruby

class CustomWizard::WizardController < ::ApplicationController
def set_layout
File.expand_path('../../views/layouts/custom_wizard.html.erb', __FILE__)
end
def index
respond_to do |format|
format.json do
wizard = CustomWizard::Builder.new(current_user, params[:wizard_id].underscore).build
render_serialized(wizard, WizardSerializer)
end
format.html {}
end
end
end