app/controllers/management/page_steps_controller.rb
# Checks is the user is in an allowed step and if not ...
# ... redirects the user to the first step
Checks is the user is in an allowed step and if not
redirects the user to the first step
Checks is the user is in an allowed step and if not redirects the user to the first step
def redirect_invalid_step
    if invalid_steps.include? step
      redirect_to wizard_path(wizard_steps[0])
    end
  end
def redirect_invalid_step if invalid_steps . include? step redirect_to wizard_path ( wizard_steps [ 0 ] ) end end
Checks is the user is in an allowed step and if not ...
... redirects the user to the first step
Checks is the user is in an allowed step and if not ... ... redirects the user to the first step