Class: I18nProofreading::DashboardController

Inherits:
Object
  • Object
show all
Includes:
RequestContext
Defined in:
app/controllers/i18n_proofreading/dashboard_controller.rb

Overview

Root of the STAFF surface: the suggestion triage dashboard.

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.

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 someone suggesting a translation.

Direct Known Subclasses

SuggestionsController