Commit 88d4559e authored by Izaak Alpert's avatar Izaak Alpert

Removed private scope

Change-Id: Ia723321a5cb05deb626d34c7d8d78194e049b1f0
parent 810851f5
...@@ -383,8 +383,6 @@ class User < ActiveRecord::Base ...@@ -383,8 +383,6 @@ class User < ActiveRecord::Base
end end
end end
private
def with_defaults def with_defaults
User.defaults.each do |k,v| User.defaults.each do |k,v|
self.send("#{k}=",v) self.send("#{k}=",v)
......
...@@ -27,7 +27,7 @@ module Gitlab ...@@ -27,7 +27,7 @@ module Gitlab
password_confirmation: password, password_confirmation: password,
} }
user = model.new(opts, as: :admin).with_defaults user = model.build_user(opts, as: :admin)
user.save! user.save!
log.info "(OAuth) Creating user #{email} from login with extern_uid => #{uid}" log.info "(OAuth) Creating user #{email} from login with extern_uid => #{uid}"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment