Class: ProductTours::DashboardController
- Inherits:
-
Object
- Object
- ProductTours::DashboardController
- Includes:
- RequestContext
- Defined in:
- app/controllers/product_tours/dashboard_controller.rb
Overview
Root of the STAFF surface: the post editor and its list.
Inherits from config.base_controller_class — by default a plain
ActionController::Base, which is why authorize_admin exists. Point it at
the controller your own admin already inherits from and the dashboard picks
up that stack wholesale: your layout, your helpers, your authentication, and
whatever request context your before_actions establish. config.admin_layout
only ever solved the first of those.
Only the dashboard hangs off it. The widget's endpoints stay on ApplicationController, so wiring an admin base controller here can never demand a staff session from a visitor being shown a tour.