From e4f63f366e610950f7d5b2b0d30fc6eaf89c173e Mon Sep 17 00:00:00 2001 From: Xavier J Date: Fri, 2 Dec 2016 12:00:22 +0100 Subject: [PATCH] Fix syntax --- app/controllers/users/registrations_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/users/registrations_controller.rb b/app/controllers/users/registrations_controller.rb index 56e0fb3b4..18054d6a9 100644 --- a/app/controllers/users/registrations_controller.rb +++ b/app/controllers/users/registrations_controller.rb @@ -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