Protect non public methods

parent 16013beb
......@@ -12,10 +12,6 @@ module Gitlab
self.auth_hash = auth_hash
end
def auth_hash=(auth_hash)
@auth_hash = AuthHash.new(auth_hash)
end
def persisted?
gl_user.persisted?
end
......@@ -43,6 +39,11 @@ module Gitlab
@user ||= find_by_uid_and_provider || build_new_user
end
protected
def auth_hash=(auth_hash)
@auth_hash = AuthHash.new(auth_hash)
end
def find_by_uid_and_provider
model.where(provider: auth_hash.provider, extern_uid: auth_hash.uid).last
end
......
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