Revert "Merge pull request #7137 from betagouv/faster_pdf"

This reverts commit 9da44bd913, reversing
changes made to ebac71796c.
This commit is contained in:
Paul Chavard 2022-04-12 19:20:50 +02:00
parent e3a9c28b6e
commit 433c01b1e6
11 changed files with 37 additions and 60 deletions

View file

@ -485,9 +485,8 @@ class Dossier < ApplicationRecord
end
def motivation
if termine?
traitement&.motivation || read_attribute(:motivation)
end
return nil if !termine?
traitement&.motivation || read_attribute(:motivation)
end
def update_search_terms