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

fix person creation of user creation

parent aa40a964
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,7 @@ module User::WithPerson
included do
has_one :person, class_name: 'University::Person', dependent: :nullify
after_create_commit :find_or_create_person unless :server_admin?
after_create_commit :find_or_create_person, unless: :server_admin?
end
protected
......
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