feat(Instructeurs#*): plugs next/prev dossier component on all required routes

This commit is contained in:
mfo 2024-11-29 11:56:34 +01:00
parent f993393eb2
commit eea5758753
No known key found for this signature in database
GPG key ID: 7CE3E1F5B794A8EC
18 changed files with 51 additions and 30 deletions

View file

@ -0,0 +1,11 @@
# frozen_string_literal: true
module InstructeurConcern
extend ActiveSupport::Concern
included do
def retrieve_procedure_presentation
@procedure_presentation ||= current_instructeur.procedure_presentation_for_procedure_id(params[:procedure_id])
end
end
end