discourse/app/controllers/wizard_controller.rb

27 lines
480 B
Ruby
Raw Normal View History

2016-08-26 01:14:56 +08:00
require_dependency 'wizard'
require_dependency 'wizard/builder'
2016-08-26 01:14:56 +08:00
class WizardController < ApplicationController
before_filter :ensure_logged_in
before_filter :ensure_staff
skip_before_filter :check_xhr, :preload_json
layout false
def index
respond_to do |format|
format.json do
wizard = Wizard::Builder.new(current_user).build
2016-08-26 01:14:56 +08:00
render_serialized(wizard, WizardSerializer)
end
format.html {}
end
end
def qunit
end
end