mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 05:50:14 +08:00
26 lines
417 B
Ruby
26 lines
417 B
Ruby
require_dependency 'wizard'
|
|
|
|
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.build
|
|
render_serialized(wizard, WizardSerializer)
|
|
end
|
|
format.html {}
|
|
end
|
|
end
|
|
|
|
def qunit
|
|
end
|
|
|
|
end
|