Skip to content
Snippets Groups Projects
Commit 3cc334ea authored by Arsenev Vladislav's avatar Arsenev Vladislav
Browse files

remove build_user from model User

parent 546fa165
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -311,10 +311,6 @@ class User < ActiveRecord::Base
find_by(id: Key.unscoped.select(:user_id).where(id: key_id))
end
 
def build_user(attrs = {})
User.new(attrs)
end
def reference_prefix
'@'
end
Loading
Loading
---
title: remove build_user
merge_request: 8162
author: Arsenev Vladislav
Loading
Loading
@@ -94,7 +94,7 @@ module API
identity_attrs = params.slice(:provider, :extern_uid)
confirm = params.delete(:confirm)
 
user = User.build_user(declared_params(include_missing: false))
user = User.new(declared_params(include_missing: false))
user.skip_confirmation! unless confirm
 
if identity_attrs.any?
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment