parent
05c3f42718
commit
332043c6fb
@ -1,19 +1,9 @@
|
||||
class SqmCategoriesController < SqmApplicationController
|
||||
|
||||
def show
|
||||
@categories = SqmCategory.all.order(:sort_index).map do |category|
|
||||
CategoryPresenter.new(
|
||||
category: category,
|
||||
academic_year: academic_year,
|
||||
school: school,
|
||||
)
|
||||
end
|
||||
@categories = SqmCategory.all.order(:sort_index).map { |category| CategoryPresenter.new(category: category) }
|
||||
|
||||
@category = CategoryPresenter.new(
|
||||
category: SqmCategory.find_by_slug(params[:id]),
|
||||
academic_year: academic_year,
|
||||
school: school,
|
||||
)
|
||||
@category = CategoryPresenter.new(category: SqmCategory.find_by_slug(params[:id]))
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Loading…
Reference in new issue