summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke "Jared" Bennett <lbennett@gitlab.com>2017-05-18 09:40:35 +0100
committerLuke "Jared" Bennett <lbennett@gitlab.com>2017-05-18 09:40:35 +0100
commite6a4b8c16337f26c6688f0b6ef5579daf9a50d39 (patch)
tree6662300ae207a80d1f6faefccd4d867d1a89c9a9
parent0b52808f0e885725a311b3ce8e45c66eb02ebce0 (diff)
downloadgitlab-ce-add-current_user-avatar_url-to-gon.tar.gz
Add current_user_avatar_url to gonadd-current_user-avatar_url-to-gon
-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 26473f99bc3..6200bd460ea 100644
--- a/lib/gitlab/gon_helper.rb
+++ b/lib/gitlab/gon_helper.rb
@@ -17,6 +17,7 @@ module Gitlab
gon.current_user_id = current_user.id
gon.current_username = current_user.username
gon.current_user_fullname = current_user.name
+ gon.current_user_avatar_url = current_user.avatar_url
end
end
end