af83/chouette-core

View on GitHub
app/controllers/workgroup_outputs_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

class WorkgroupOutputsController < Chouette::WorkgroupController
  respond_to :html, only: [:show]
  defaults resource_class: Workgroup

  def show
    @aggregates = workgroup.aggregates.order('created_at desc').paginate(page: params[:page], per_page: 30)
    @aggregates = AggregateDecorator.decorate(@aggregates)
  end
end