1
0
Fork 0
discourse-custom-wizard-unl.../controllers/steps.rb
2017-09-23 10:34:07 +08:00

11 Zeilen
304 B
Ruby

class CustomWizard::StepsController < ::ApplicationController
def all
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