Refacto check_invite! after registration for User.
This commit is contained in:
parent
f5f5ef1a0d
commit
154e4f3c10
1 changed files with 1 additions and 2 deletions
|
@ -68,7 +68,6 @@ class Users::RegistrationsController < Devise::RegistrationsController
|
|||
private
|
||||
|
||||
def check_invite! user
|
||||
Invite.where(email: user.email)
|
||||
.each { |invite| invite.update user: user }
|
||||
Invite.where(email: user.email).update_all user_id: user.id
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue