diff options
Diffstat (limited to 'app/serializers/current_user_entity.rb')
-rw-r--r-- | app/serializers/current_user_entity.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/serializers/current_user_entity.rb b/app/serializers/current_user_entity.rb new file mode 100644 index 00000000000..71d14e727dd --- /dev/null +++ b/app/serializers/current_user_entity.rb @@ -0,0 +1,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 |