demarches-normaliennes/app/controllers/users
Pierre de La Morinerie 3499f5af9a models: remove invalid Dossier ↔︎ Champ inverse relationship
`Dossier.champs` is not really an inverse of `Champs.dossier`: when a
Champ record is created, it should not always be added to dossier.champs
(for instance if the champ is private).

NB: this breaks the workaround we added in #3907 to fix the parent
dossier not being touched in some cases (the workaround was to add an
inverse relationship, but we now have to remove it).

The new workaround is to watch for `changed_for_autosave?` on champs.
Unlike `changed?`, `changed_for_autosave?` also detects changes to
attachments. This allows us to touch both `last_champ_updated_at` and
`updated_at` in a single pass.
2021-04-06 10:26:17 +02:00
..
activate_controller.rb ActivateController: add tests and clean a bit 2019-08-16 11:22:36 +02:00
commencer_controller.rb controllers: use template: rather than file: to render PDFs 2021-03-25 13:24:53 +01:00
confirmations_controller.rb mailers: add procedure context to the confirmation link 2020-02-25 11:45:36 +00:00
demarches_controller.rb Add Style/CollectionMethods to rubocop 2019-09-12 14:48:18 +02:00
dossiers_controller.rb models: remove invalid Dossier ↔︎ Champ inverse relationship 2021-04-06 10:26:17 +02:00
feedbacks_controller.rb app: rename new_user to users 2019-03-25 10:56:39 +01:00
passwords_controller.rb admin: replace calls to Administrateur.find_by(email: ...) 2020-02-04 16:21:42 +01:00
profil_controller.rb [link to #4557] An instructeur cannot change its email on its own 2019-12-11 17:18:21 +01:00
registrations_controller.rb mailers: add procedure context to the confirmation link 2020-02-25 11:45:36 +00:00
sessions_controller.rb [fix #4238] When the token does not exist, redirect to home page without sending a new link 2019-08-27 15:01:46 +02:00
user_controller.rb app: rename new_user to users 2019-03-25 10:56:39 +01:00