demarches-normaliennes/app/controllers
Pierre de La Morinerie f131dbb80d instructeurs: make the create form not using email directly
Before the form attempted to read an email value from the Instructeur
model, and failed (because the empty Instructeur had no user yet).

We could let `Instructeur#email` return `nil` if there is no User –
but as a created Instructeur is always supposed to have a User, this
seems like a nice safeguard to keep.

So instead this commit rewrites the create form, which now doesn’t
depend on an Instructeur model. Seems easy enough for now.
2019-11-04 10:44:24 +01:00
..
admin instructeurs: make the create form not using email directly 2019-11-04 10:44:24 +01:00
administrateurs Remove credenticals synchronisation logic 2019-08-16 11:35:19 +02:00
administrations layouts: rename "application" to "application_old" 2019-01-07 12:17:05 +01:00
api Add graphql end point 2019-09-24 10:47:21 +02:00
champs Cleanup application_controller and current_user 2019-09-17 12:37:37 +02:00
concerns Invite experts to linked dossiers 2019-10-23 13:10:09 +02:00
devise sign_in: extract the procedure context to a ProcedureContextConcern 2019-01-17 11:07:09 +01:00
france_connect Rename gestionnaire in code to instructeur 2019-08-12 13:47:01 +02:00
instructeurs instructeurs: fix expert creation not to use Instructeur.email 2019-11-04 10:44:24 +01:00
manager manager: allow hidden procedures to be searched 2019-10-31 17:03:02 +01:00
new_administrateur move procedure to new design 2019-10-31 10:27:19 +01:00
users instructeurs: replace calls to Instructeur.find_by(email: …) 2019-11-04 10:44:23 +01:00
address_controller.rb AddressController#get → #suggestions 2018-10-16 09:38:53 +02:00
admin_controller.rb Remove “avec_lien” helpers now that Procedure.path cannot be nil 2019-09-17 16:30:48 +02:00
api_controller.rb Enable flipflop on api requests 2019-03-12 14:02:55 +01:00
application_controller.rb [fix #4361] administrateur active 2019-10-24 18:32:48 +02:00
attachments_controller.rb Refactor purge pj to be more generic 2019-05-29 15:54:51 +02:00
demandes_controller.rb layouts: rename "application" to "application_old" 2019-01-07 12:17:05 +01:00
invites_controller.rb [fixe #3974] add message for invite mail 2019-07-23 18:54:58 +02:00
ping_controller.rb Add back content_type 2018-02-06 14:07:20 +01:00
root_controller.rb patron: add content to the repetition champ 2019-10-24 16:52:29 +02:00
stats_controller.rb Add Style/CollectionMethods to rubocop 2019-09-12 14:48:18 +02:00
support_controller.rb Cleanup application_controller and current_user 2019-09-17 12:37:37 +02:00
webhook_controller.rb instructeurs: replace calls to Instructeur.find_by(email: …) 2019-11-04 10:44:23 +01:00