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
|