Class: Postnhost::OnboardingController

Inherits:
ApplicationController show all
Includes:
Postnhost::Onboarding::AccessControl, Postnhost::Onboarding::StepAssignment
Defined in:
app/controllers/postnhost/onboarding_controller.rb

Constant Summary

Constants included from Postnhost::Onboarding::StepAssignment

Postnhost::Onboarding::StepAssignment::LANGUAGE_OPTIONS, Postnhost::Onboarding::StepAssignment::SITE_COPY_KEYS

Instance Method Summary collapse

Instance Method Details

#showObject



11
12
13
14
15
16
17
# File 'app/controllers/postnhost/onboarding_controller.rb', line 11

def show
  @post_install_checklist = post_install_checklist_mode?
  return if @post_install_checklist

  @step = current_step
  load_step_assignments
end

#updateObject



19
20
21
# File 'app/controllers/postnhost/onboarding_controller.rb', line 19

def update
  handle_step_result(Postnhost::Onboarding::StepProcessor.call(params:, session:))
end