Class: Plutonium::Wizard::BaseController

Inherits:
ActionController::Base
  • Object
show all
Includes:
Controller
Defined in:
lib/plutonium/wizard/base_controller.rb

Overview

Convenience base for a standalone wizard controller that needs NO custom auth base: a plain ActionController::Base plus the wizard module. Use it when you want to drop in your own controller without an auth concern:

class WizardsController < Plutonium::Wizard::BaseController; end

For an AUTHENTICATED standalone wizard, don't use this — inherit your own authenticated base and include Plutonium::Wizard::Controller instead, so the controller carries current_user:

class WizardsController < ApplicationController
include Plutonium::Wizard::Controller
include Plutonium::Auth::Rodauth(:user)
end

The module is the mechanism; this class is only sugar.

Constant Summary

Constants included from Driving

Driving::SESSION_TOKENS_KEY, Driving::WIZARD_RETURN_TO_KEY

Method Summary

Methods included from Controller

#launch, #show, #update

Methods included from Driving

session_token_key

Methods included from StructuredInputs::ParamsConcern

#clean_structured_inputs

Methods included from Core::Controller

#rail?, #shell

Methods included from Core::Controllers::AssociationResolver

#resolve_association

Methods included from Core::Controllers::EntityScoping

#scoped_entity_class, #scoped_entity_param_key, #scoped_entity_route_key, #scoped_entity_strategy, #scoped_to_entity?

Methods included from Core::Controllers::Bootable

#current_engine, #current_package