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
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue