Remove “avec_lien” helpers now that Procedure.path cannot be nil
This commit is contained in:
parent
8fa630d2bb
commit
b9968b76b0
7 changed files with 13 additions and 22 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue