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:
parent
d878ae645f
commit
2f5528398f
11 changed files with 280 additions and 0 deletions
|
@ -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?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue