Class: Admin::DashboardController

Inherits:
BaseController
  • Object
show all
Defined in:
lib/generators/open_loam/install/templates/admin/dashboard_controller.rb

Constant Summary

Constants included from Pagination

Pagination::PER_PAGE

Instance Method Summary collapse

Methods inherited from BaseController

skip_authorization!

Methods included from Pagination

#paginate

Instance Method Details

#index ⇒ Object



5
6
7
8
9
10
# File 'lib/generators/open_loam/install/templates/admin/dashboard_controller.rb', line 5

def index
  # Configurable, role-visible widgets (OpenLoam::Dashboard) — a raising widget
  # is isolated into an error tile, never breaking the page. Register your
  # own with OpenLoam::Widgets.register; arrange them under Dashboard settings.
  @widgets = OpenLoam::Dashboard.for(actor: current_actor, role: current_role)
end