From dd80cc280a135e13a1a448f4628befc2a087415a Mon Sep 17 00:00:00 2001 From: Frederic Merizen Date: Tue, 23 Oct 2018 10:55:59 +0200 Subject: [PATCH] [#2604] Extract method in ProceduresController --- app/controllers/new_gestionnaire/procedures_controller.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/controllers/new_gestionnaire/procedures_controller.rb b/app/controllers/new_gestionnaire/procedures_controller.rb index 5fe1f2425..71ba18093 100644 --- a/app/controllers/new_gestionnaire/procedures_controller.rb +++ b/app/controllers/new_gestionnaire/procedures_controller.rb @@ -208,7 +208,11 @@ module NewGestionnaire end def procedure_presentation - @procedure_presentation ||= current_gestionnaire.procedure_presentation_for_procedure_id(params[:procedure_id]) + @procedure_presentation ||= get_procedure_presentation + end + + def get_procedure_presentation + current_gestionnaire.procedure_presentation_for_procedure_id(params[:procedure_id]) end def displayed_fields_values