gitlab-org--gitlab-foss/lib/api/entities/user_safe.rb

12 lines
231 B
Ruby

# 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