feat(user): dossier résumé with commentaire about corrections
This commit is contained in:
parent
0fc09bb42c
commit
b495e0aff0
2 changed files with 11 additions and 0 deletions
|
@ -27,6 +27,10 @@ module DossierCorrectableConcern
|
|||
corrections.pending.exists?
|
||||
end
|
||||
|
||||
def pending_correction
|
||||
corrections.pending.first
|
||||
end
|
||||
|
||||
def resolve_pending_correction!
|
||||
corrections.pending.update(resolved_at: Time.current)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue