gl_id.rb 152 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11
module Gitlab
  module GlId
    def self.gl_id(user)
      if user.present?
        "user-#{user.id}"
      else
        ""
      end
    end
  end
end