small refactor
This commit is contained in:
parent
2269585188
commit
ba688a477a
1 changed files with 3 additions and 2 deletions
|
@ -485,9 +485,10 @@ class Dossier < ApplicationRecord
|
|||
end
|
||||
|
||||
def motivation
|
||||
return nil if !termine?
|
||||
if termine?
|
||||
traitement&.motivation || read_attribute(:motivation)
|
||||
end
|
||||
end
|
||||
|
||||
def update_search_terms
|
||||
self.search_terms = [
|
||||
|
|
Loading…
Reference in a new issue