Module: UserBadgePostAndTopicAttributesMixin

Included in:
DetailedUserBadgeSerializer, UserBadgeSerializer
Defined in:
app/serializers/concerns/user_badge_post_and_topic_attributes_mixin.rb

Overview

Post and topic attributes are only included when the ‘allowed_user_badge_topic_ids` option is provided. The caller of the serializer is responsible for ensuring that the topic ids in the options can be seen by the scope of the user by passing the result of `Guardian#can_see_topic_ids` to the `allowed_user_badge_topic_ids` option.