debian-mirror-gitlab/lib/gitlab/gl_id.rb

12 lines
152 B
Ruby
Raw Normal View History

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