Fix syntax

This commit is contained in:
Xavier J 2016-12-02 12:00:22 +01:00
parent 4717d72dde
commit e4f63f366e

View file

@ -69,6 +69,6 @@ class Users::RegistrationsController < Devise::RegistrationsController
def check_invite! user
Invite.where(email: user.email)
.each { |invite| invite.update_attribute(:user, user) }
.each { |invite| invite.update user: user }
end
end