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:
authorFrancisco Javier López <fjlopez@gitlab.com>2018-04-18 20:50:56 +0300
committerDouwe Maan <douwe@gitlab.com>2018-04-18 20:50:56 +0300
commite8a27a67fadfa8e62d1c72979281bcd74c39c489 (patch)
tree0bb3612890dcce48600c9f88352daaf1cb8b73a2 /lib/gitlab/gl_id.rb
parent6a5de6dd3bc122be0473d80ba213de71be6b0fe8 (diff)
Fix Custom hooks are not triggered by UI wiki edit
Diffstat (limited to 'lib/gitlab/gl_id.rb')
-rw-r--r--lib/gitlab/gl_id.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/gitlab/gl_id.rb b/lib/gitlab/gl_id.rb
index 624fd00367e..a53d156b41f 100644
--- a/lib/gitlab/gl_id.rb
+++ b/lib/gitlab/gl_id.rb
@@ -2,10 +2,14 @@ module Gitlab
module GlId
def self.gl_id(user)
if user.present?
- "user-#{user.id}"
+ gl_id_from_id_value(user.id)
else
- ""
+ ''
end
end
+
+ def self.gl_id_from_id_value(id)
+ "user-#{id}"
+ end
end
end