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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
231 B
Ruby
Raw Normal View History

# 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