gitlab-org--gitlab-foss/lib/gitlab/gl_id.rb
2016-06-16 12:59:07 +02:00

11 lines
152 B
Ruby

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