small refactor

This commit is contained in:
simon lehericey 2022-04-06 00:49:59 +02:00 committed by Paul Chavard
parent ca8dc34196
commit 821fd2394b

View file

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