diff options
author | Paweł Świątkowski <pawel.swiatkowski@puzzleflow.com> | 2014-06-17 16:13:01 +0400 |
---|---|---|
committer | katafrakt <inquebrantable@gmail.com> | 2014-06-21 13:00:54 +0400 |
commit | 61a403ff22db19c8482bbd701b6222a1e4b4eb99 (patch) | |
tree | 1bc5556fa231ea7f2f5ed8e91278bc17b4666657 /lib/gitlab | |
parent | d1e424bd5c403d73d399bf0f92e39aefde56e638 (diff) |
ensure that uid is a string
Diffstat (limited to 'lib/gitlab')
-rw-r--r-- | lib/gitlab/oauth/user.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/gitlab/oauth/user.rb b/lib/gitlab/oauth/user.rb index c5be884a895..9ad75e63a04 100644 --- a/lib/gitlab/oauth/user.rb +++ b/lib/gitlab/oauth/user.rb @@ -61,7 +61,9 @@ module Gitlab end def uid - auth.info.uid || auth.uid + uid = auth.info.uid || auth.uid + uid = uid.to_s unless uid.nil? + uid end def email |