feat(manager#outdated_procedure): allow super admin to enable procedure_expires_when_termine_enabled for old procedure

revew(typo): various typo, tx christophe :-)

fix(spec): due to typo fixes
This commit is contained in:
Martin 2022-08-16 16:53:41 +02:00
parent d878ae645f
commit 2f5528398f
11 changed files with 280 additions and 0 deletions

View file

@ -351,6 +351,10 @@ class Procedure < ApplicationRecord
end
end
def dossiers_close_to_expiration
dossiers.close_to_expiration.count
end
def publish_or_reopen!(administrateur)
Procedure.transaction do
if brouillon?