feat(Instructeurs#*): plugs next/prev dossier component on all required routes
This commit is contained in:
parent
f993393eb2
commit
eea5758753
18 changed files with 51 additions and 30 deletions
11
app/controllers/concerns/instructeur_concern.rb
Normal file
11
app/controllers/concerns/instructeur_concern.rb
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue