Removed private scope

Change-Id: Ia723321a5cb05deb626d34c7d8d78194e049b1f0
This commit is contained in:
Izaak Alpert 2013-09-11 14:03:26 -04:00
parent 810851f574
commit 88d4559e62
2 changed files with 1 additions and 3 deletions

View File

@ -383,8 +383,6 @@ class User < ActiveRecord::Base
end
end
private
def with_defaults
User.defaults.each do |k,v|
self.send("#{k}=",v)

View File

@ -27,7 +27,7 @@ module Gitlab
password_confirmation: password,
}
user = model.new(opts, as: :admin).with_defaults
user = model.build_user(opts, as: :admin)
user.save!
log.info "(OAuth) Creating user #{email} from login with extern_uid => #{uid}"