Show separate blocks for types de champ and annotation changes

This commit is contained in:
Paul Chavard 2021-06-22 12:20:04 +02:00
parent 19195008e8
commit 35eccb5630
6 changed files with 73 additions and 19 deletions

View file

@ -368,6 +368,14 @@ class Procedure < ApplicationRecord
published_revision.compare(draft_revision)
end
def revision_types_de_champ_private_changes
revision_changes.filter { |change| change[:private] }
end
def revision_types_de_champ_changes
revision_changes.filter { |change| !change[:private] }
end
def accepts_new_dossiers?
publiee? || brouillon?
end