gitlab-org--gitlab-foss/app/serializers/discussion_entity.rb

10 lines
218 B
Ruby

class DiscussionEntity < Grape::Entity
include RequestAwareEntity
expose :id, :reply_id
expose :expanded?, as: :expanded
expose :notes, using: NoteEntity
expose :individual_note?, as: :individual_note
end