Welcome to mirror list, hosted at ThFree Co, Russian Federation.

user_safe.rb « entities « api « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: fb99c2e960df28c18730de7ac27a7480296d7609 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# frozen_string_literal: true

module API
  module Entities
    class UserSafe < Grape::Entity
      expose :id, :username
      expose :name do |user|
        user.redacted_name(options[:current_user])
      end
    end
  end
end