Remove france_connect delegation on User

This commit is contained in:
gregoirenovel 2018-10-01 13:10:36 +02:00
parent 14c8e02aca
commit 36ce94195b

View file

@ -19,7 +19,6 @@ class User < ApplicationRecord
has_many :feedbacks, dependent: :destroy
has_one :france_connect_information, dependent: :destroy
delegate :email_france_connect, :gender, :birthdate, :birthplace, :france_connect_particulier_id, to: :france_connect_information
accepts_nested_attributes_for :france_connect_information
before_validation -> { sanitize_email(:email) }