Revert "Export de tous les dossier d'une démarche"

This commit is contained in:
krichtof 2021-04-29 16:07:18 +02:00 committed by GitHub
parent 4f79c0315d
commit d9a588b52e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
32 changed files with 36 additions and 675 deletions

View file

@ -156,20 +156,6 @@ class Procedure < ApplicationRecord
includes(:draft_revision, :published_revision, administrateurs: :user)
}
scope :for_download, -> {
includes(
:groupe_instructeurs,
dossiers: {
champs: [
piece_justificative_file_attachment: :blob,
champs: [
piece_justificative_file_attachment: :blob
]
]
}
)
}
validates :libelle, presence: true, allow_blank: false, allow_nil: false
validates :description, presence: true, allow_blank: false, allow_nil: false
validates :administrateurs, presence: true