affiche Madame ou Monsieur
mais continue à enregistrer en base Mme ou M.
This commit is contained in:
parent
2066e3db87
commit
23ae528c6b
6 changed files with 11 additions and 8 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue