Skip to content
Snippets Groups Projects
Unverified Commit c574aad4 authored by Sébastien Gaya's avatar Sébastien Gaya
Browse files

fix first or initialize user person

parent 4e896e7a
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,7 @@ module User::WithPerson
protected
def find_or_create_person
person = university.people.where(email: email).first || university.people.new
person = university.people.where(email: email).first_or_initialize
person_l10n = person.localizations.find_by(language_id: university.default_language_id)
person.user = self
person.localizations_attributes = [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment