mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
Wizard: Step 1
This commit is contained in:
parent
0471ad393c
commit
3a4615c205
50 changed files with 1103 additions and 80 deletions
15
app/controllers/steps_controller.rb
Normal file
15
app/controllers/steps_controller.rb
Normal file
|
@ -0,0 +1,15 @@
|
|||
require_dependency 'wizard'
|
||||
require_dependency 'wizard/step_updater'
|
||||
|
||||
class StepsController < ApplicationController
|
||||
|
||||
before_filter :ensure_logged_in
|
||||
before_filter :ensure_staff
|
||||
|
||||
def update
|
||||
updater = Wizard::StepUpdater.new(current_user, params[:id])
|
||||
updater.update(params[:fields])
|
||||
render nothing: true
|
||||
end
|
||||
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue