Improuve revision changes messages

This commit is contained in:
Paul Chavard 2021-06-23 18:56:04 +02:00
parent 241eff76a3
commit 15ff046428
7 changed files with 84 additions and 64 deletions

View file

@ -368,14 +368,6 @@ 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