Log dossier archiver/desarchiver operations
This commit is contained in:
parent
58bc2ee4e3
commit
a911a71db9
3 changed files with 15 additions and 3 deletions
|
@ -416,6 +416,16 @@ class Dossier < ApplicationRecord
|
|||
end
|
||||
end
|
||||
|
||||
def archiver!(author)
|
||||
update!(archived: true)
|
||||
log_dossier_operation(author, :archiver)
|
||||
end
|
||||
|
||||
def desarchiver!(author)
|
||||
update!(archived: false)
|
||||
log_dossier_operation(author, :desarchiver)
|
||||
end
|
||||
|
||||
def text_summary
|
||||
if brouillon?
|
||||
parts = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue