Merge pull request #4513 from betagouv/raise-on-borked-france-connect
individual: raise when the individual object cannot be created
This commit is contained in:
commit
028deebd33
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ class Individual < ApplicationRecord
|
|||
GENDER_FEMALE = 'Mme'
|
||||
|
||||
def self.create_from_france_connect(fc_information)
|
||||
create(
|
||||
create!(
|
||||
nom: fc_information.family_name,
|
||||
prenom: fc_information.given_name,
|
||||
gender: fc_information.gender == 'female' ? GENDER_FEMALE : GENDER_MALE
|
||||
|
|
Loading…
Reference in a new issue