helper: simplify DossierHelper.url_for_dossier

The argument is never an Invite
This commit is contained in:
Pierre de La Morinerie 2018-07-04 09:59:35 +02:00 committed by gregoirenovel
parent b6ea2f1b36
commit 33c743ab77
2 changed files with 1 additions and 8 deletions

View file

@ -16,9 +16,7 @@ module DossierHelper
end
def url_for_dossier(dossier)
if dossier.kind_of? Invite
users_dossiers_invite_path(id: dossier.id)
elsif dossier.brouillon?
if dossier.brouillon?
modifier_dossier_path(dossier)
else
users_dossier_recapitulatif_path(dossier)