demarches-normaliennes/app/models
Pierre de La Morinerie 51aacabf13 models: fix touch not propagating when using nested attributes
Sometimes, when using nested attributes, touch doesn’t propagate to
parent relationships. (see https://github.com/rails/rails/issues/26726)

Specifically, this happens in our app when updating a dossier with
only new attachements (but without changing the value of any fields).

To work around this, we need to define the parent relationship
explicitely. This is good practice anyway.

Fix #3906
2019-06-17 13:44:07 +02:00
..
champs Use default format for date and datetime champ 2019-06-12 17:48:12 +02:00
concerns active_storage: document the virus scan hooks 2019-05-28 11:39:22 +02:00
mails Use enum to the fullest with Dossier.states 2018-08-29 17:31:08 +02:00
types_de_champ [Fix #3578] No tags for champs that cannot have user input anyway 2019-03-11 10:26:27 +01:00
.keep First Commit 2015-08-10 11:05:06 +02:00
administrateur.rb Fix administration page 2019-03-12 15:34:30 +01:00
administrateurs_procedure.rb [Ref #1626] Add the administrateurs_procedures table and associations 2018-03-23 11:40:03 +01:00
administration.rb An admin has always a gestionnaire role 2018-11-13 10:41:45 +01:00
application_record.rb Bootstrap Action Cable and Unicorn 2016-12-22 21:49:31 +01:00
assign_to.rb Notification: add gestionnaire.procedures_with_email_notifications scope 2019-03-18 16:19:36 +01:00
attestation.rb [#1563] Remove attestation mail attachment 2018-05-09 10:42:40 +02:00
attestation_template.rb Time.now => Time.zone.now 2018-10-26 10:10:20 +00:00
avis.rb models: fix touch not propagating when using nested attributes 2019-06-17 13:44:07 +02:00
champ.rb models: fix touch not propagating when using nested attributes 2019-06-17 13:44:07 +02:00
commentaire.rb models: fix touch not propagating when using nested attributes 2019-06-17 13:44:07 +02:00
current.rb Enable flipflop for instructeurs 2019-03-12 12:14:34 +01:00
deleted_dossier.rb Enforce Timezone rule in Rubocop 2019-02-18 16:19:42 +01:00
demande.rb [fix #1601] show pipedrive demandes in manager 2018-03-22 15:37:16 +01:00
dossier.rb models: fix touch not propagating when using nested attributes 2019-06-17 13:44:07 +02:00
dossier_operation_log.rb Set keep_until on operation_log if available on procedure 2019-05-14 14:31:03 +02:00
drop_down_list.rb Add new admin procedure update action 2019-01-17 11:20:31 +01:00
entreprise.rb Remove entreprise and rna_information models 2018-05-24 17:54:51 +02:00
etablissement.rb Save SIRET data on search 2019-03-19 16:22:42 +01:00
exercice.rb Remove unused alias 2018-05-24 17:54:51 +02:00
feedback.rb Add AR validation for Feedback rating 2018-08-28 10:36:36 +02:00
follow.rb Add “previously followed” dossiers and gestionnaires 2019-06-12 17:33:53 +02:00
france_connect_information.rb Remove the mandataire_social guess 2018-03-20 16:09:00 +01:00
france_connect_particulier_client.rb FC initializers: remove Hashie 2018-01-15 17:08:38 +01:00
geo_area.rb Add user_geo_area do champ carte 2018-11-20 10:53:14 +01:00
gestionnaire.rb Make rubocop happy 2019-06-12 17:33:53 +02:00
individual.rb Individual: remove birthdate proxy 2018-04-04 15:27:30 +02:00
invite.rb [Fix #1619] Do not consider invitations to deleted dossiers 2018-03-15 11:32:21 +01:00
module_api_carto.rb Remove unused carto models 2018-11-27 16:11:25 +01:00
piece_justificative.rb models: fix touch not propagating when using nested attributes 2019-06-17 13:44:07 +02:00
procedure.rb Ignore the Procedure.administrateur_id column again 2019-05-06 16:19:08 +02:00
procedure_overview.rb DateTime.now => Time.zone.now 2018-10-26 10:10:20 +00:00
procedure_presentation.rb Allow filtering ProcedurePresentation by followers_gestionnaires 2019-04-10 14:32:51 +02:00
service.rb [fix #3315] Migrate service organisme 2019-02-18 16:50:44 +01:00
siret.rb Do one thing per line 2018-10-01 16:15:46 +02:00
trusted_device_token.rb TrustedDeviceToken: valid for one week 2019-02-18 17:20:49 +01:00
type_de_champ.rb Always create menu deroulant champs with a value 2019-04-11 14:38:21 +02:00
type_de_piece_justificative.rb Order types de champ in scope 2018-12-20 14:14:15 +01:00
user.rb Remove dead code 2018-12-19 14:59:15 +01:00