Unify code in Users::Dossiers::InvitesController#show
This commit is contained in:
parent
6d139ed1a8
commit
4e2964aec3
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ class Users::Dossiers::InvitesController < UsersController
|
|||
if dossier.brouillon?
|
||||
redirect_to brouillon_dossier_path(dossier)
|
||||
else
|
||||
return redirect_to dossier_path(dossier)
|
||||
redirect_to dossier_path(dossier)
|
||||
end
|
||||
rescue ActiveRecord::RecordNotFound
|
||||
flash.alert = t('errors.messages.dossier_not_found')
|
||||
|
|
Loading…
Reference in a new issue