app/controllers/workbench_outputs_controller.rb
# frozen_string_literal: true
class WorkbenchOutputsController < Chouette::WorkbenchController
respond_to :html, only: [:show]
defaults resource_class: Workbench
def show
workbench_merges = workbench.merges.order('created_at desc').paginate(page: params[:page], per_page: 30)
@workbench_merges = decorate_merges(workbench_merges)
end
private
def decorate_merges(merges)
MergeDecorator.decorate(
merges,
context: {
workbench: workbench
}
)
end
end