Class: Plutonium::Wizard::BaseController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- Plutonium::Wizard::BaseController
- 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
Methods included from Driving
Methods included from StructuredInputs::ParamsConcern
Methods included from Core::Controller
Methods included from Core::Controllers::AssociationResolver
Methods included from Core::Controllers::EntityScoping
#scoped_entity_class, #scoped_entity_param_key, #scoped_entity_route_key, #scoped_entity_strategy, #scoped_to_entity?