Class: SagaForge::Dashboard::OverviewController

Inherits:
BaseController
  • Object
show all
Defined in:
app/controllers/saga_forge/dashboard/overview_controller.rb

Overview

Fleet summary. The index is a lightweight turbo-frame shell: the cheap card totals render immediately, and the per-class GROUP BY (the one real aggregate on this page) is isolated in its own lazy-loaded classes frame so it never blocks the cards or the rest of the page.

Instance Method Summary collapse

Instance Method Details

#classesObject



12
13
14
15
# File 'app/controllers/saga_forge/dashboard/overview_controller.rb', line 12

def classes
  @rows = OverviewQuery.new.rows
  render layout: false
end

#indexObject



8
9
10
# File 'app/controllers/saga_forge/dashboard/overview_controller.rb', line 8

def index
  @totals = OverviewQuery.new.totals
end