debian-mirror-gitlab/lib/api/entities/user_safe.rb
2022-05-07 20:08:51 +05:30

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