mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-12 00:31:48 -05: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
|