dossier: cache the dossier value
This commit is contained in:
parent
63472f00e6
commit
5cfb200417
1 changed files with 1 additions and 1 deletions
|
@ -185,7 +185,7 @@ module NewUser
|
|||
end
|
||||
|
||||
def dossier
|
||||
Dossier.find(params[:id] || params[:dossier_id])
|
||||
@dossier ||= Dossier.find(params[:id] || params[:dossier_id])
|
||||
end
|
||||
|
||||
def dossier_with_champs
|
||||
|
|
Loading…
Reference in a new issue