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