procedure: ignore :expects_multiple_submissions on the correct model

This commit is contained in:
Pierre de La Morinerie 2019-07-10 18:31:36 +02:00
parent 3e43ef029e
commit fdca7c025a
2 changed files with 1 additions and 3 deletions

View file

@ -1,8 +1,6 @@
class Dossier < ApplicationRecord
include DossierFilteringConcern
self.ignored_columns = [:expects_multiple_submissions]
enum state: {
brouillon: 'brouillon',
en_construction: 'en_construction',

View file

@ -3,7 +3,7 @@ require Rails.root.join('lib', 'percentile')
class Procedure < ApplicationRecord
MAX_DUREE_CONSERVATION = 36
self.ignored_columns = [:individual_with_siret]
self.ignored_columns = [:individual_with_siret, :expects_multiple_submissions]
has_many :types_de_piece_justificative, -> { ordered }, inverse_of: :procedure, dependent: :destroy
has_many :types_de_champ, -> { root.public_only.ordered }, inverse_of: :procedure, dependent: :destroy