fix(procedure): don't crash when procedure does not exist on /fermerture path
This commit is contained in:
parent
ebe762ee5d
commit
370aa074d2
1 changed files with 3 additions and 0 deletions
|
@ -80,6 +80,9 @@ module Users
|
|||
|
||||
def closing_details
|
||||
@procedure = Procedure.find_by(path: params[:path])
|
||||
|
||||
return procedure_not_found if @procedure.blank?
|
||||
|
||||
render 'closing_details', layout: 'closing_details'
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue