Log dossier archiver/desarchiver operations
This commit is contained in:
parent
58bc2ee4e3
commit
a911a71db9
3 changed files with 15 additions and 3 deletions
|
@ -97,12 +97,12 @@ module Instructeurs
|
|||
end
|
||||
|
||||
def archive
|
||||
dossier.update(archived: true)
|
||||
dossier.archiver!(current_instructeur)
|
||||
redirect_back(fallback_location: instructeur_procedures_url)
|
||||
end
|
||||
|
||||
def unarchive
|
||||
dossier.update(archived: false)
|
||||
dossier.desarchiver!(current_instructeur)
|
||||
redirect_back(fallback_location: instructeur_procedures_url)
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue