debian-mirror-gitlab/lib/gitlab/gl_id.rb
2018-10-15 14:42:47 +05:30

15 lines
228 B
Ruby

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