gitlab-org--gitlab-foss/lib/gitlab/gl_id.rb
2018-10-22 07:00:50 +00:00

17 lines
259 B
Ruby

# frozen_string_literal: true
module Gitlab
module GlId
def self.gl_id(user)
if user.present?
gl_id_from_id_value(user.id)
else
''
end
end
def self.gl_id_from_id_value(id)
"user-#{id}"
end
end
end