Remove “avec_lien” helpers now that Procedure.path cannot be nil

This commit is contained in:
Nicolas Bouilleaud 2019-09-16 16:59:10 +02:00
parent 8fa630d2bb
commit b9968b76b0
7 changed files with 13 additions and 22 deletions

View file

@ -1,11 +1,9 @@
module ProcedureHelper
def procedure_lien(procedure)
if procedure.path.present?
if procedure.brouillon_avec_lien?
commencer_test_url(path: procedure.path)
else
commencer_url(path: procedure.path)
end
if procedure.brouillon?
commencer_test_url(path: procedure.path)
else
commencer_url(path: procedure.path)
end
end