affiche Madame ou Monsieur

mais continue à enregistrer en base Mme ou M.
This commit is contained in:
Christophe Robillard 2020-12-08 21:30:54 +01:00
parent 2066e3db87
commit 23ae528c6b
6 changed files with 11 additions and 8 deletions

View file

@ -19,8 +19,8 @@ class Individual < ApplicationRecord
validates :nom, presence: true, allow_blank: false, allow_nil: false, on: :update
validates :prenom, presence: true, allow_blank: false, allow_nil: false, on: :update
GENDER_MALE = 'Monsieur'
GENDER_FEMALE = 'Madame'
GENDER_MALE = "M."
GENDER_FEMALE = 'Mme'
def self.from_france_connect(fc_information)
new(