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

@ -24,12 +24,10 @@ class ProcedureSerializer < ActiveModel::Serializer
end
def link
if object.path.present?
if object.brouillon_avec_lien?
commencer_test_url(path: object.path)
else
commencer_url(path: object.path)
end
if object.brouillon?
commencer_test_url(path: object.path)
else
commencer_url(path: object.path)
end
end