Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-22 17:30:29 +01:00
15 Zeilen
408 B
Ruby
15 Zeilen
408 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]).build
|
|
render_serialized(wizard, WizardSerializer)
|
|
end
|
|
format.html {}
|
|
end
|
|
end
|
|
end
|