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

current_user_entity.rb « serializers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 71d14e727dd7ad2af620eae412177c291dbddd1c (plain)
1
2
3
4
5
6
7
8
# frozen_string_literal: true

# Always use this entity when rendering data for current user
# for attributes that does not need to be visible to other users
# like user preferences.
class CurrentUserEntity < UserEntity
  expose :user_preference, using: UserPreferenceEntity
end