diff --git a/app/controllers/devise_token_auth/omniauth_callbacks_controller.rb b/app/controllers/devise_token_auth/omniauth_callbacks_controller.rb index 37bea0921..85add605e 100644 --- a/app/controllers/devise_token_auth/omniauth_callbacks_controller.rb +++ b/app/controllers/devise_token_auth/omniauth_callbacks_controller.rb @@ -112,7 +112,8 @@ def omniauth_params # break out provider attribute assignment for easy method extension def assign_provider_attrs(user, auth_hash) - attrs = auth_hash['info'].slice(*user.attribute_names) + attrs = auth_hash['info'].to_hash + attrs = attrs.slice(*user.attribute_names) user.assign_attributes(attrs) end