Class: CrudComponents::Admin::DashboardController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- CrudComponents::Admin::DashboardController
- Defined in:
- app/controllers/crud_components/admin/dashboard_controller.rb
Overview
The mount root: what there is to administer.
Constant Summary
Constants inherited from ApplicationController
ApplicationController::ACTIVE_STORAGE_HELPERS
Instance Method Summary collapse
Instance Method Details
#show ⇒ Object
5 6 7 |
# File 'app/controllers/crud_components/admin/dashboard_controller.rb', line 5 def show @counts = admin_entries.to_h { |entry| [entry.name, admin_scope(entry).count] } if admin_config.counts end |