Class: MatViews::Admin::DashboardController

Inherits:
ApplicationController show all
Defined in:
app/controllers/mat_views/admin/dashboard_controller.rb

Overview

MatViews::Admin::DashboardController


Controller for the MatViews admin dashboard.

Responsibilities:

  • Provides the landing page (index) for the admin interface.

  • Authorizes access via ApplicationController#authorize_mat_views!.

  • Prepares placeholder metrics content (future: aggregated refresh metrics).

Instance Method Summary collapse

Methods included from AuthBridge

#user

Instance Method Details

#indexvoid

This method returns an undefined value.

GET /:lang/admin

Renders the admin dashboard. Currently sets a placeholder message until metric aggregation is implemented.



26
27
28
29
# File 'app/controllers/mat_views/admin/dashboard_controller.rb', line 26

def index
  authorize_mat_views!(:read, :mat_views_dashboard)
  @metrics_note = 'Metrics coming soon (see: Aggregate refresh metrics for reporting).'
end