Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClement Ho <ClemMakesApps@gmail.com>2016-11-11 20:56:47 +0300
committerClement Ho <ClemMakesApps@gmail.com>2017-01-10 01:00:53 +0300
commitf20875ec4557b23d6df810bd49e1955f5fbbd6e0 (patch)
tree44a0292e6bc7da825897a5e8ecf07a87c0fc0866 /lib/gitlab/gon_helper.rb
parent9c8a86f60d2d36b628c5275004e4c17aa07aeeeb (diff)
Add username to gon
Diffstat (limited to 'lib/gitlab/gon_helper.rb')
-rw-r--r--lib/gitlab/gon_helper.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/gitlab/gon_helper.rb b/lib/gitlab/gon_helper.rb
index 4d4e04e9e35..b8a5ac907a4 100644
--- a/lib/gitlab/gon_helper.rb
+++ b/lib/gitlab/gon_helper.rb
@@ -13,6 +13,7 @@ module Gitlab
if current_user
gon.current_user_id = current_user.id
+ gon.current_username = current_user.username
end
end
end