diff options
author | Francisco Javier López <fjlopez@gitlab.com> | 2018-04-18 20:50:56 +0300 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2018-04-18 20:50:56 +0300 |
commit | e8a27a67fadfa8e62d1c72979281bcd74c39c489 (patch) | |
tree | 0bb3612890dcce48600c9f88352daaf1cb8b73a2 /lib/gitlab/gl_id.rb | |
parent | 6a5de6dd3bc122be0473d80ba213de71be6b0fe8 (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.rb | 8 |
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 |