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.
16 lines
502 B
16 lines
502 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: category) }
|
|
end
|
|
|
|
private
|
|
|
|
def presenter_for_measure(measure)
|
|
score = SurveyItemResponse.score_for_measure(measure: measure, school: @school, academic_year: @academic_year)
|
|
|
|
VarianceChartRowPresenter.new(measure: measure, score: score)
|
|
end
|
|
end
|