Class: CrudComponents::Admin::DashboardController

Inherits:
ApplicationController show all
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

#showObject



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