refactor description controller
This commit is contained in:
parent
67a4ff2519
commit
0eb699d6b9
4 changed files with 89 additions and 85 deletions
|
@ -6,8 +6,8 @@ class DescriptionController < ApplicationController
|
|||
@array_id_pj_valides = PieceJointe.get_array_id_pj_valid_for_dossier @dossier.id
|
||||
@formulaire = @dossier.formulaire
|
||||
@liste_pieces_jointes = @dossier.types_piece_jointe
|
||||
rescue
|
||||
redirect_to url_for({controller: :start, action: :error_dossier})
|
||||
rescue ActiveRecord::RecordNotFound
|
||||
redirect_to url_for(controller: :start, action: :error_dossier)
|
||||
end
|
||||
|
||||
def error
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue