Issue 658: user object creation comes before person object creation,
preventing spurrious handle creation errors, if user creation
fails
This commit is contained in:
parent
3cb0064835
commit
2633dbc268
1 changed files with 1 additions and 1 deletions
|
|
@ -381,8 +381,8 @@ class User
|
||||||
self.invitation_token = nil
|
self.invitation_token = nil
|
||||||
self.password = opts[:password]
|
self.password = opts[:password]
|
||||||
self.password_confirmation = opts[:password_confirmation]
|
self.password_confirmation = opts[:password_confirmation]
|
||||||
self.person.save!
|
|
||||||
self.save!
|
self.save!
|
||||||
|
self.person.save!
|
||||||
invitations_to_me.each{|invitation| invitation.to_request!}
|
invitations_to_me.each{|invitation| invitation.to_request!}
|
||||||
|
|
||||||
self.reload # Because to_request adds a request and saves elsewhere
|
self.reload # Because to_request adds a request and saves elsewhere
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue