app/controllers/publications_controller.rb
# frozen_string_literal: true
class PublicationsController < Chouette::WorkgroupController
include PolicyChecker
defaults :resource_class => Publication
belongs_to :publication_setup
respond_to :html
def show
@export = ExportDecorator.decorate(
@publication.export,
context: {
parent: workgroup
}
)
show!
end
end