demarches-normaliennes/app
Pierre de La Morinerie 5e05556ee8 dossiers: add a validation on dossier individual
Validate that a dossier on a `for_individual?` procedure always has
an `individual` associated record.

For this, the individual needs to be built before the record is
validated (i.e. even before the `before_create` callback is run).

This should help with #4596: now if a dossier is created without an
`individual`, or if the `invividual` record is later removed, the
validation will fail.
2020-01-08 10:48:22 +01:00
..
assets Remove unused code and tests 2020-01-07 11:52:51 +01:00
controllers dossiers: add a validation on dossier individual 2020-01-08 10:48:22 +01:00
dashboards Add depubliee state to procedures 2019-12-04 16:52:41 +01:00
fields manager: remove support for old pj 2019-07-30 16:11:17 +02:00
graphql Add champ communes 2020-01-07 11:52:51 +01:00
helpers helpers: allow dossier_display_state to take a state as input 2019-12-19 13:22:40 +01:00
javascript Remove unused code and tests 2020-01-07 11:52:51 +01:00
jobs Fix typo in purges_stale_exports_job filename 2019-12-18 13:35:04 +01:00
lib Remove unused code and tests 2020-01-07 11:52:51 +01:00
mailers Routing: send emails to the right group 2019-12-16 17:47:08 +01:00
models dossiers: add a validation on dossier individual 2020-01-08 10:48:22 +01:00
policies champ_policy: allow instructeurs to access private annotations 2019-10-08 14:34:12 +02:00
serializers Cleanup demarche archivee state 2020-01-07 11:13:42 +01:00
services Bug with time zone: Time.zone.today looses time_zone and may breaks database comparisons 2019-12-11 17:34:10 +01:00
validators gestion des 2 formats de bouton monavis 2019-09-17 13:39:45 +02:00
views Add champ communes 2020-01-07 11:52:51 +01:00