You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
437 B
15 lines
437 B
class OverviewController < SqmApplicationController
|
|
def index
|
|
@variance_chart_row_presenters = Measure.all.map(&method(:presenter_for_measure))
|
|
@category_presenters = Category.sorted.map { |category| CategoryPresenter.new(category:) }
|
|
end
|
|
|
|
private
|
|
|
|
def presenter_for_measure(measure)
|
|
score = measure.score(school: @school, academic_year: @academic_year)
|
|
|
|
VarianceChartRowPresenter.new(measure:, score:)
|
|
end
|
|
end
|