Class: Testimonials::DashboardController
- Inherits:
-
Object
- Object
- Testimonials::DashboardController
- Includes:
- RequestContext
- Defined in:
- app/controllers/testimonials/dashboard_controller.rb
Overview
Root of the STAFF surface: the testimonial queue and the NPS pages.
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 (a Current
attribute the layout reads, say). 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 member leaving a review.